aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-04-14 16:36:15 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2014-04-22 15:32:04 -0700
commit729619cb26b27db827d5dca9f5d4e0ecf5c1e23d (patch)
tree0201dad7ef0a71bcd262cbdfb9ef66059c27e6e1 /gcc-4.9
parente9e2116491354ffdf3b216d485fd08d95fc0fc4f (diff)
downloadtoolchain_gcc-729619cb26b27db827d5dca9f5d4e0ecf5c1e23d.tar.gz
toolchain_gcc-729619cb26b27db827d5dca9f5d4e0ecf5c1e23d.tar.bz2
toolchain_gcc-729619cb26b27db827d5dca9f5d4e0ecf5c1e23d.zip
[4.9] Enable x86/arm gcc defaults; Remove march/mtune/mfpmath/-m32 hardcoded values
See 8ca3ada77e50f58668ed31fac0d0b929a96ae40a and 19cf682fd52c042ec6b988ef294dacc45fa50944 Change-Id: Ibc672343710b4b414d11c600fe069ed60692c90b
Diffstat (limited to 'gcc-4.9')
-rw-r--r--gcc-4.9/gcc/config/arm/linux-eabi.h2
-rw-r--r--gcc-4.9/gcc/config/i386/linux-common.h9
-rw-r--r--gcc-4.9/gcc/config/linux-android.h4
3 files changed, 11 insertions, 4 deletions
diff --git a/gcc-4.9/gcc/config/arm/linux-eabi.h b/gcc-4.9/gcc/config/arm/linux-eabi.h
index c0204b076..4d42cbfc8 100644
--- a/gcc-4.9/gcc/config/arm/linux-eabi.h
+++ b/gcc-4.9/gcc/config/arm/linux-eabi.h
@@ -91,7 +91,7 @@
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC, \
GNU_USER_TARGET_CC1_SPEC " " ASAN_CC1_SPEC " " \
- ANDROID_CC1_SPEC)
+ ANDROID_CC1_SPEC("-fpic"))
#define CC1PLUS_SPEC \
LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
diff --git a/gcc-4.9/gcc/config/i386/linux-common.h b/gcc-4.9/gcc/config/i386/linux-common.h
index 1eaf024a6..93013221a 100644
--- a/gcc-4.9/gcc/config/i386/linux-common.h
+++ b/gcc-4.9/gcc/config/i386/linux-common.h
@@ -30,7 +30,14 @@ along with GCC; see the file COPYING3. If not see
#undef CC1_SPEC
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
- GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
+ GNU_USER_TARGET_CC1_SPEC \
+ " -mstackrealign -msse3" \
+ " -fno-short-enums" \
+ " " \
+ ANDROID_CC1_SPEC("-fPIC"))
+
+#define CC1PLUS_SPEC \
+ LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
#undef LINK_SPEC
#define LINK_SPEC \
diff --git a/gcc-4.9/gcc/config/linux-android.h b/gcc-4.9/gcc/config/linux-android.h
index 42e061716..070f969da 100644
--- a/gcc-4.9/gcc/config/linux-android.h
+++ b/gcc-4.9/gcc/config/linux-android.h
@@ -40,9 +40,9 @@
#define ANDROID_LINK_SPEC \
"%{shared: -Bsymbolic} -z noexecstack -z relro -z now"
-#define ANDROID_CC1_SPEC \
+#define ANDROID_CC1_SPEC(ANDROID_PIC_DEFAULT) \
"%{!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} " \
- "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
+ "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: " ANDROID_PIC_DEFAULT "}}}}"
#define ANDROID_CC1PLUS_SPEC \
"%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \