]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert the last change in libatomic
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2016 12:41:43 +0000 (12:41 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2016 12:41:43 +0000 (12:41 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235411 138bc75d-0d04-0410-961f-82ee72b054a4

libatomic/ChangeLog
libatomic/configure.tgt

index 70a7f7ceca1fcb4545a945b56b65baeb82dadda3..7fc60c22085246c88bf670244b921225c480ee52 100644 (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
index 49233a4f45ae5314d514266b9600539f404af61d..c5470d7ef8c36dc6b77a16fa72c17d286ff4318d 100644 (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