Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc/config canonicalise the netbsd sp...
details: https://anonhg.NetBSD.org/src/rev/5654a975fb91
branches: trunk
changeset: 347243:5654a975fb91
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Aug 19 05:11:09 2016 +0000
description:
canonicalise the netbsd spec functions in NETBSD_SUBTARGET_EXTRA_SPECS:
netbsd_cpp_spec
netbsd_link_spec
netbsd_entry_point
netbsd_endfile_spec
use this in all netbsd targets.
XXX: 3 ports set this to EXTRA_SPECS instead of SUBTARGET_EXTRA_SPECS.
diffstat:
external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h | 7 ++-----
external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h | 3 +--
external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h | 7 -------
external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h | 8 --------
external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h | 9 ---------
external/gpl3/gcc/dist/gcc/config/ia64/netbsd.h | 9 ---------
external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h | 5 -----
external/gpl3/gcc/dist/gcc/config/mips/netbsd.h | 7 -------
external/gpl3/gcc/dist/gcc/config/netbsd-elf.h | 11 +++++++++++
external/gpl3/gcc/dist/gcc/config/or1k/netbsd.h | 6 ------
external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h | 4 ++--
external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h | 6 ------
external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h | 4 +---
external/gpl3/gcc/dist/gcc/config/sh/netbsd-elf.h | 7 -------
external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h | 4 +---
external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h | 20 +++-----------------
16 files changed, 21 insertions(+), 96 deletions(-)
diffs (285 lines):
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -41,11 +41,8 @@
#define CPP_SPEC NETBSD_CPP_SPEC
#undef EXTRA_SPECS
-#define EXTRA_SPECS \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
- { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
-
+#define EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS
+#undef SUBTARGET_EXTRA_SPECS
/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h Fri Aug 19 05:11:09 2016 +0000
@@ -93,14 +93,13 @@
#define SUBTARGET_EXTRA_SPECS \
{ "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
{ "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
{ "linker_eabi_suffix", TARGET_LINKER_EABI_SUFFIX }, \
{ "linker_emulation", TARGET_LINKER_EMULATION }, \
{ "linker_big_emulation", TARGET_LINKER_BIG_EMULATION }, \
{ "linker_little_emulation", TARGET_LINKER_LITTLE_EMULATION }, \
{ "be8_link_spec", BE8_LINK_SPEC }, \
{ "target_fix_v4bx_spec", TARGET_FIX_V4BX_SPEC }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
+ NETBSD_SUBTARGET_EXTRA_SPECS
#define NETBSD_ENTRY_POINT "__start"
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -75,13 +75,6 @@
"%{mhard-float:%{!mfpu=*:-mfpu=vfp}} \
%{mfloat-abi=hard:%{!mfpu=*:-mfpu=vfp}}"
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
- { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
#define NETBSD_ENTRY_POINT "__start"
#undef LINK_SPEC
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -27,14 +27,6 @@
while (0)
-/* Extra specs needed for NetBSD/i386 ELF. */
-
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
-
/* Provide a LINK_SPEC appropriate for a NetBSD/i386 ELF target. */
#undef LINK_SPEC
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h
--- a/external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h Fri Aug 19 05:11:09 2016 +0000
@@ -27,15 +27,6 @@
while (0)
-/* Extra specs needed for NetBSD/x86-64 ELF. */
-
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
-
/* Provide a LINK_SPEC appropriate for a NetBSD/x86-64 ELF target. */
#undef LINK_SPEC
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/ia64/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/ia64/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/ia64/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -27,15 +27,6 @@
while (0)
-/* Extra specs needed for NetBSD/ia-64 ELF. */
-
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
-
/* Provide a LINK_SPEC appropriate for a NetBSD/ia64 ELF target. */
#undef LINK_SPEC
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -53,11 +53,6 @@
} \
}
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
/* Provide a CPP_SPEC appropriate for NetBSD m68k targets. Currently we
deal with the GCC option '-posix', as well as an indication as to
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/mips/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -158,13 +158,6 @@
while (0)
-/* Extra specs we need. */
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
/* Provide a SUBTARGET_CPP_SPEC appropriate for NetBSD. */
#undef SUBTARGET_CPP_SPEC
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -90,6 +90,17 @@
%{%:sanitize(address): -lasan } \
%{%:sanitize(undefined): -lubsan}}}"
+/* Provide the standard list of subtarget extra specs for NetBSD targets. */
+#define NETBSD_SUBTARGET_EXTRA_SPECS \
+ { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
+ { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
+ { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
+ { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
+
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS
+
+
/* Use --as-needed -lgcc_s for eh support. */
#ifdef HAVE_LD_AS_NEEDED
#define USE_LD_AS_NEEDED 1
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/or1k/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/or1k/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/or1k/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -54,12 +54,6 @@
#undef NETBSD_ENTRY_POINT
#define NETBSD_ENTRY_POINT "_start"
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
- { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
-
#undef TARGET_DEFAULT
#define TARGET_DEFAULT \
(/*MASK_HARD_FLOAT |*/ MASK_DOUBLE_FLOAT \
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -35,8 +35,8 @@
"%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
#undef EXTRA_SPECS
-#define EXTRA_SPECS \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
+#define EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS
+#undef SUBTARGET_EXTRA_SPECS
#define NETBSD_ENTRY_POINT "__start"
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -63,12 +63,6 @@
#undef NETBSD_ENTRY_POINT
#define NETBSD_ENTRY_POINT "_start"
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
- { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
-
#define SIG_ATOMIC_TYPE "int"
#define INT8_TYPE "signed char"
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Fri Aug 19 05:11:09 2016 +0000
@@ -112,9 +112,7 @@
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
- { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
+ NETBSD_SUBTARGET_EXTRA_SPECS
/*
* Add NetBSD specific defaults: -mstrict-align
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/sh/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/sh/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/sh/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -20,13 +20,6 @@
/* Run-time Target Specification. */
-/* Extra specs needed for NetBSD SuperH ELF targets. */
-
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
-
-
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -209,9 +209,7 @@
{ "link_arch64", LINK_ARCH64_SPEC }, \
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
{ "link_arch", LINK_ARCH_SPEC }, \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
- { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
+ NETBSD_SUBTARGET_EXTRA_SPECS
/* Build a compiler that supports -m32 and -m64? */
diff -r 39f0816190b1 -r 5654a975fb91 external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h Fri Aug 19 04:09:05 2016 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h Fri Aug 19 05:11:09 2016 +0000
@@ -43,25 +43,11 @@
#define NETBSD_ENTRY_POINT "__start"
#undef LINK_SPEC
-#if 0
-/* FIXME: We must link all executables statically until PIC support
- is added to the compiler. */
-#define LINK_SPEC \
- "%{assert*} %{R*} %{rpath*} \
- %{shared:%ethe -shared option is not currently supported for VAX ELF} \
- %{!shared: \
- -dc -dp \
- %{!nostdlib: \
- %{!r: \
- %{!e*:-e %(netbsd_entry_point)}}} \
- %{!static:-static} \
- %{static:-static}}"
-#else
#define LINK_SPEC NETBSD_LINK_SPEC_ELF
-#endif
-#define EXTRA_SPECS \
- { "netbsd_entry_point", NETBSD_ENTRY_POINT },
+#undef EXTRA_SPECS
+#define EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS
+#undef SUBTARGET_EXTRA_SPECS
#undef INTPTR_TYPE
#define INTPTR_TYPE "long int"
Home |
Main Index |
Thread Index |
Old Index