aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Chupin <pavel.v.chupin@intel.com>2014-06-20 15:25:13 +0400
committerPavel Chupin <pavel.v.chupin@intel.com>2014-06-20 15:25:13 +0400
commit07c90b853afa81c102fbdcc3b956641f13c450c4 (patch)
treef1d6090344c237e698510551fe8a61c7d3acbfa3
parent85f026f337499654a77d32ca68929fd5d456000e (diff)
downloadtoolchain_gcc-07c90b853afa81c102fbdcc3b956641f13c450c4.tar.gz
toolchain_gcc-07c90b853afa81c102fbdcc3b956641f13c450c4.tar.bz2
toolchain_gcc-07c90b853afa81c102fbdcc3b956641f13c450c4.zip
Setup x86_64 ABI and add -mssse3 to x86 ABI
32-bit: replace -msse3 by -mssse3 64-bit: setup default options as -msse4.2 -mpopcnt Note: when multilib compiler is used -m32 will match 32-bit options and -m64 or default (neither -m32 nor -m64) will match 64-bit options. Change-Id: Ia20a03f54e3ff5857108e9ab0ae1c4c7c1e6cc7f Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
-rw-r--r--gcc-4.6/gcc/config/i386/linux.h2
-rw-r--r--gcc-4.7/gcc/config/i386/gnu-user.h2
-rw-r--r--gcc-4.8/gcc/config/i386/linux-common.h8
-rw-r--r--gcc-4.9/gcc/config/i386/linux-common.h8
4 files changed, 14 insertions, 6 deletions
diff --git a/gcc-4.6/gcc/config/i386/linux.h b/gcc-4.6/gcc/config/i386/linux.h
index 7a0388e04..f514cde86 100644
--- a/gcc-4.6/gcc/config/i386/linux.h
+++ b/gcc-4.6/gcc/config/i386/linux.h
@@ -86,7 +86,7 @@ along with GCC; see the file COPYING3. If not see
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (LINUX_TARGET_CC1_SPEC, \
LINUX_TARGET_CC1_SPEC \
- " -mstackrealign -msse3" \
+ " -mstackrealign -mssse3" \
" -m32 -fno-short-enums" \
" " \
ANDROID_CC1_SPEC("-fPIC"))
diff --git a/gcc-4.7/gcc/config/i386/gnu-user.h b/gcc-4.7/gcc/config/i386/gnu-user.h
index 9c1e8f90f..20760c81f 100644
--- a/gcc-4.7/gcc/config/i386/gnu-user.h
+++ b/gcc-4.7/gcc/config/i386/gnu-user.h
@@ -84,7 +84,7 @@ along with GCC; see the file COPYING3. If not see
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (LINUX_TARGET_CC1_SPEC, \
LINUX_TARGET_CC1_SPEC \
- " -mstackrealign -msse3" \
+ " -mstackrealign -mssse3" \
" -fno-short-enums" \
" " \
ANDROID_CC1_SPEC("-fPIC"))
diff --git a/gcc-4.8/gcc/config/i386/linux-common.h b/gcc-4.8/gcc/config/i386/linux-common.h
index 7f70bd40b..fd10aefdf 100644
--- a/gcc-4.8/gcc/config/i386/linux-common.h
+++ b/gcc-4.8/gcc/config/i386/linux-common.h
@@ -27,12 +27,16 @@ along with GCC; see the file COPYING3. If not see
} \
while (0)
+#undef ANDROID_TARGET_CC1_SPEC
+#define ANDROID_TARGET_CC1_SPEC \
+ "%{m32:-mstackrealign -mssse3 -fno-short-enums}" \
+ "%{!m32:-msse4.2 -mpopcnt}"
+
#undef CC1_SPEC
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
GNU_USER_TARGET_CC1_SPEC \
- " -mstackrealign -msse3" \
- " -fno-short-enums" \
+ ANDROID_TARGET_CC1_SPEC \
" " \
ANDROID_CC1_SPEC("-fPIC"))
diff --git a/gcc-4.9/gcc/config/i386/linux-common.h b/gcc-4.9/gcc/config/i386/linux-common.h
index 93013221a..574f096e6 100644
--- a/gcc-4.9/gcc/config/i386/linux-common.h
+++ b/gcc-4.9/gcc/config/i386/linux-common.h
@@ -27,12 +27,16 @@ along with GCC; see the file COPYING3. If not see
} \
while (0)
+#undef ANDROID_TARGET_CC1_SPEC
+#define ANDROID_TARGET_CC1_SPEC \
+ "%{m32:-mstackrealign -mssse3 -fno-short-enums}" \
+ "%{!m32:-msse4.2 -mpopcnt}"
+
#undef CC1_SPEC
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
GNU_USER_TARGET_CC1_SPEC \
- " -mstackrealign -msse3" \
- " -fno-short-enums" \
+ ANDROID_TARGET_CC1_SPEC \
" " \
ANDROID_CC1_SPEC("-fPIC"))