Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3 PR toolchain/53810
details: https://anonhg.NetBSD.org/src/rev/58c403232543
branches: trunk
changeset: 447028:58c403232543
user: rin <rin%NetBSD.org@localhost>
date: Fri Dec 28 21:30:20 2018 +0000
description:
PR toolchain/53810
PR toolchain/53684
PR toolchain/53685
No one defines TARGET_DEFAULT_CPU anymore. Use ENABLE_SHARED_LIBGCC
instead to determine whether GCC is configured for m68k or m68000.
This fixes C++ binaries on m68k, that require libgcc_s.
OK mrg
diffstat:
external/gpl3/gcc.old/dist/gcc/config/m68k/netbsd-elf.h | 2 +-
external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r aa5b94afb273 -r 58c403232543 external/gpl3/gcc.old/dist/gcc/config/m68k/netbsd-elf.h
--- a/external/gpl3/gcc.old/dist/gcc/config/m68k/netbsd-elf.h Fri Dec 28 21:22:44 2018 +0000
+++ b/external/gpl3/gcc.old/dist/gcc/config/m68k/netbsd-elf.h Fri Dec 28 21:30:20 2018 +0000
@@ -79,7 +79,7 @@
#define LINK_SPEC NETBSD_LINK_SPEC_ELF
/* NetBSD/sun2 does not support shlibs, avoid using libgcc_pic. */
-#if TARGET_DEFAULT_CPU == 0
+#ifndef ENABLE_SHARED_LIBGCC
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC "-lgcc"
#endif
diff -r aa5b94afb273 -r 58c403232543 external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Fri Dec 28 21:22:44 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h Fri Dec 28 21:30:20 2018 +0000
@@ -79,7 +79,7 @@
#define LINK_SPEC NETBSD_LINK_SPEC_ELF
/* NetBSD/sun2 does not support shlibs, avoid using libgcc_pic. */
-#if TARGET_DEFAULT_CPU == 0
+#ifndef ENABLE_SHARED_LIBGCC
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC "-lgcc"
#endif
Home |
Main Index |
Thread Index |
Old Index