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/rs6000 Change CC1_SPEC and...
details: https://anonhg.NetBSD.org/src/rev/18878ca8e588
branches: trunk
changeset: 339051:18878ca8e588
user: matt <matt%NetBSD.org@localhost>
date: Wed Jun 24 01:29:33 2015 +0000
description:
Change CC1_SPEC andd CC1PLUS_SPEC to supply -fPIC by default if none of
m32 mrelocatable fpie fPIE fpic fPIC fno-pie fno-pic are supplied.
diffstat:
external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 4c98adbdd298 -r 18878ca8e588 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Tue Jun 23 21:00:23 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Wed Jun 24 01:29:33 2015 +0000
@@ -87,6 +87,17 @@
#define ELFv2_ABI_CHECK (rs6000_elf_abi == 2)
+#undef CC1_OS_NETBSD_SPEC
+#define CC1_OS_NETBSD_SPEC \
+ NETBSD_CC1_AND_CC1PLUS_SPEC \
+ "%{!m32: %{!mrelocatable: %{!fno-pie: %{!fno-pic: \
+ %{!fpie: %{!fpic: \
+ %{!fPIE: %{!fPIC:-fPIC}}}}}}}}"
+/* %{!m32: %{!mcmodel*: -mcmodel=medium}}" */
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC CC1_OS_NETBSD_SPEC
+
#undef SUBSUBTARGET_OVERRIDE_OPTIONS
#define SUBSUBTARGET_OVERRIDE_OPTIONS \
do \
Home |
Main Index |
Thread Index |
Old Index