Module Name: src
Committed By: martin
Date: Fri Sep 1 08:45:42 UTC 2017
Modified Files:
src/external/gpl3/gcc/dist/gcc/config [netbsd-8]: netbsd-elf.h
src/external/gpl3/gcc/dist/gcc/config/m68k [netbsd-8]: netbsd-elf.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.6.1 \
src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
cvs rdiff -u -r1.10 -r1.10.6.1 \
src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.11 src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.11.6.1
--- src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h:1.11 Fri Oct 21 07:24:30 2016
+++ src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h Fri Sep 1 08:45:42 2017
@@ -113,3 +113,8 @@ along with GCC; see the file COPYING3.
#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}}"
Index: src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.10 src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.10.6.1
--- src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.10 Fri Aug 19 05:11:10 2016
+++ src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Fri Sep 1 08:45:42 2017
@@ -82,6 +82,7 @@ along with GCC; see the file COPYING3.
/* 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"