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/aarch64 There is no more S...



details:   https://anonhg.NetBSD.org/src/rev/6f232edeb798
branches:  trunk
changeset: 320669:6f232edeb798
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jul 15 16:35:47 2018 +0000

description:
There is no more SUBTARGET_EXTRA_SPECS, so hijack the EXTRA_SPECS.

diffstat:

 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 2b9e5b83c3da -r 6f232edeb798 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h        Sun Jul 15 16:26:27 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h        Sun Jul 15 16:35:47 2018 +0000
@@ -20,10 +20,6 @@
 #ifndef GCC_AARCH64_NETBSD_H
 #define GCC_AARCH64_NETBSD_H
 
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS                          \
-  NETBSD_SUBTARGET_EXTRA_SPECS
-
 #define TARGET_LINKER_BIG_EMULATION "aarch64nbsdb"
 #define TARGET_LINKER_LITTLE_EMULATION "aarch64nbsd"
 
@@ -36,6 +32,8 @@
 #undef  SUBTARGET_EXTRA_LINK_SPEC
 #define SUBTARGET_EXTRA_LINK_SPEC " -m" TARGET_LINKER_EMULATION
 
+#define NETBSD_ENTRY_POINT "__start"
+
 #define NETBSD_TARGET_LINK_SPEC  "%{h*}                        \
    -X %{mbig-endian:-EB -m " TARGET_LINKER_BIG_EMULATION "} \
    %{mlittle-endian:-EL -m " TARGET_LINKER_LITTLE_EMULATION "} \
@@ -96,4 +94,9 @@
 #define MCOUNT_NAME ".mcount"
 #endif
 
+#undef EXTRA_SPECS
+#define EXTRA_SPECS \
+  { "asm_cpu_spec",             ASM_CPU_SPEC }, \
+  NETBSD_SUBTARGET_EXTRA_SPECS
+
 #endif  /* GCC_AARCH64_NETBSD_H */



Home | Main Index | Thread Index | Old Index