]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/61570
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 14:58:19 +0000 (14:58 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 14:58:19 +0000 (14:58 +0000)
* config/i386/driver-i386.c (host_detect_local_cpu): For unknown
model family 6 CPU with has_longmode never use a CPU without
64-bit support.

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

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index 00bad435ac796628e81ff28fc4d25cbe80b6a29b..e29fcafdc4c66f98b17acf95e91bca209f8da66d 100644 (file)
@@ -1,3 +1,10 @@
+2014-06-24  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/61570
+       * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
+       model family 6 CPU with has_longmode never use a CPU without
+       64-bit support.
+
 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/61570
index 3e8a995f2856cd9bd5ae45fa92dcacc271ac2032..4cd0b3d2e4bde5a8027596710a960b510b45646d 100644 (file)
@@ -745,6 +745,11 @@ const char *host_detect_local_cpu (int argc, const char **argv)
                    /* Assume Core 2.  */
                    cpu = "core2";
                }
+             else if (has_longmode)
+               /* Perhaps some emulator?  Assume x86-64, otherwise gcc
+                  -march=native would be unusable for 64-bit compilations,
+                  as all the CPUs below are 32-bit only.  */
+               cpu = "x86-64";
              else if (has_sse3)
                /* It is Core Duo.  */
                cpu = "pentium-m";