aboutsummaryrefslogtreecommitdiff
path: root/libatomic/configure.tgt
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2016-04-25 12:41:43 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2016-04-25 05:41:43 -0700
commit3dd7e09253039fd9d9fbf97f36569f5a1caab11d (patch)
treebe2cb9fc387847d61393cc9af06d75ced478bd3a /libatomic/configure.tgt
parent9c8a71e668a436268fcca79295e2bfcbc75d1206 (diff)
downloadgcc-3dd7e09253039fd9d9fbf97f36569f5a1caab11d.zip
gcc-3dd7e09253039fd9d9fbf97f36569f5a1caab11d.tar.gz
gcc-3dd7e09253039fd9d9fbf97f36569f5a1caab11d.tar.bz2
Revert the last change in libatomic
Need to properly check if -march=i486 is really needed for -m32 build of libatomic on Linux/x86 and Linux/x86-64. PR target/70454 * configure.tgt (XCFLAGS): Revert the last change. From-SVN: r235411
Diffstat (limited to 'libatomic/configure.tgt')
-rw-r--r--libatomic/configure.tgt10
1 files changed, 8 insertions, 2 deletions
diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt
index 49233a4..c5470d7 100644
--- a/libatomic/configure.tgt
+++ b/libatomic/configure.tgt
@@ -81,8 +81,14 @@ case "${target_cpu}" in
try_ifunc=yes
;;
x86_64)
- # x86_64 compiler passes -march=x86_64 by default when building
- # 32bit target libraries.
+ case " ${CC} ${CFLAGS} " in
+ *" -m32 "*)
+ XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic"
+ XCFLAGS="${XCFLAGS} -fomit-frame-pointer"
+ ;;
+ *)
+ ;;
+ esac
ARCH=x86
# ??? Detect when -mcx16 is already enabled.
try_ifunc=yes