Module Name: src
Committed By: joerg
Date: Wed Jul 19 13:10:29 UTC 2017
Modified Files:
src/external/gpl3/gcc/dist/gcc/config: netbsd-elf.h
src/external/gpl3/gcc/dist/gcc/config/m68k: netbsd-elf.h
Log Message:
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.12 src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
cvs rdiff -u -r1.10 -r1.11 \
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.12
--- 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 Wed Jul 19 13:10:28 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.11
--- 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 Wed Jul 19 13:10:28 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"