Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/external/gpl3/gcc/dist/gcc/config Pull up following revis...



details:   https://anonhg.NetBSD.org/src/rev/6b65d9ed5dfb
branches:  netbsd-8
changeset: 850998:6b65d9ed5dfb
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Sep 01 08:45:42 2017 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #254):
        external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h: revision 1.11
        external/gpl3/gcc/dist/gcc/config/netbsd-elf.h: revision 1.12
PR 51266, PR 52326: Fix GCC specs to always default to -shared-libgcc,
except on Sun2, which just uses plain -lgcc.

diffstat:

 external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h |  1 +
 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h      |  5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r a6a118a60f5b -r 6b65d9ed5dfb external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h       Fri Sep 01 08:43:22 2017 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h       Fri Sep 01 08:45:42 2017 +0000
@@ -82,6 +82,7 @@
 /* NetBSD/sun2 does not support shlibs, avoid using libgcc_pic.  */
 #if TARGET_DEFAULT_CPU == 0
 #undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC       "-lgcc"
 #endif
 
 #define NETBSD_ENTRY_POINT "_start"
diff -r a6a118a60f5b -r 6b65d9ed5dfb external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h    Fri Sep 01 08:43:22 2017 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h    Fri Sep 01 08:45:42 2017 +0000
@@ -113,3 +113,8 @@
 
 #undef TARGET_UNWIND_TABLES_DEFAULT
 #define TARGET_UNWIND_TABLES_DEFAULT true
+
+#undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC                                                  \
+   "%{static|static-libgcc:-lgcc}"                                        \
+   "%{!static:%{!static-libgcc:--as-needed -lgcc_s --no-as-needed -lgcc}}"



Home | Main Index | Thread Index | Old Index