aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Chupin <pavel.v.chupin@intel.com>2013-05-22 11:12:15 +0400
committerPavel Chupin <pavel.v.chupin@intel.com>2013-05-22 11:12:15 +0400
commit19cf682fd52c042ec6b988ef294dacc45fa50944 (patch)
treeeae9f230ffbb4028015c8059013e214cfe51d3b1
parentd909af3e2469aad87d5c3e79b93c778fd26c03a9 (diff)
downloadtoolchain_gcc-19cf682fd52c042ec6b988ef294dacc45fa50944.tar.gz
toolchain_gcc-19cf682fd52c042ec6b988ef294dacc45fa50944.tar.bz2
toolchain_gcc-19cf682fd52c042ec6b988ef294dacc45fa50944.zip
Remove hardcoded -m32 in compiler options
It's required for x86_64 targets where we obviously don't want to enforce -m32. It shouldn't affect standard i686 targets because i686 is enforced on configure stage and it effectively removes 64-bit support, keeping -m32 default. Patch changes 4.7 and 4.8 only. x86_64 targets are not expected to be supported in older gcc versions due to many issues and dependencies. Change-Id: Id15a677a9d3b1712eb95aba92c2c5bd98f9ed1cc Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
-rw-r--r--gcc-4.7/gcc/config/i386/gnu-user.h2
-rw-r--r--gcc-4.8/gcc/config/i386/linux-common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.7/gcc/config/i386/gnu-user.h b/gcc-4.7/gcc/config/i386/gnu-user.h
index 59a95f2fc..9c1e8f90f 100644
--- a/gcc-4.7/gcc/config/i386/gnu-user.h
+++ b/gcc-4.7/gcc/config/i386/gnu-user.h
@@ -85,7 +85,7 @@ along with GCC; see the file COPYING3. If not see
LINUX_OR_ANDROID_CC (LINUX_TARGET_CC1_SPEC, \
LINUX_TARGET_CC1_SPEC \
" -mstackrealign -msse3" \
- " -m32 -fno-short-enums" \
+ " -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 51e25b427..7f70bd40b 100644
--- a/gcc-4.8/gcc/config/i386/linux-common.h
+++ b/gcc-4.8/gcc/config/i386/linux-common.h
@@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
GNU_USER_TARGET_CC1_SPEC \
" -mstackrealign -msse3" \
- " -m32 -fno-short-enums" \
+ " -fno-short-enums" \
" " \
ANDROID_CC1_SPEC("-fPIC"))