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
This commit is contained in:
H.J. Lu 2016-04-25 12:41:43 +00:00 committed by H.J. Lu
parent 9c8a71e668
commit 3dd7e09253
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-04-25 H.J. Lu <hongjiu.lu@intel.com>
PR target/70454
* configure.tgt (XCFLAGS): Revert the last change.
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/70454

View File

@ -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