re PR target/48743 (-march=native mis-detects AMD K6-2+ / K6-3 as Athlon - compiled...
authorQuentin Neill <quentin.neill@amd.com>
Mon, 19 Dec 2011 17:57:32 +0000 (17:57 +0000)
committerQuentin Neill <qneill@gcc.gnu.org>
Mon, 19 Dec 2011 17:57:32 +0000 (17:57 +0000)
2011-12-19  Quentin Neill  <quentin.neill@amd.com>
2011-12-19  Quentin Neill  <quentin.neill@amd.com>

PR target/48743
* config/i386/driver-i386.c (host_detect_local_cpu): Also check
family to distinguish PROCESSOR_ATHLON.

From-SVN: r182489

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

index 484459c0c1d4d7b0c33e51219f92a7d59fdc6d58..8884bbfe3795eb0e9912c861a08e752d6bc50104 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-19  Quentin Neill  <quentin.neill@amd.com>
+
+       PR target/48743
+       * config/i386/driver-i386.c (host_detect_local_cpu): Also check
+       family to distinguish PROCESSOR_ATHLON.
+
 2011-12-19  Richard Guenther  <rguenther@suse.de>
 
        PR lto/51573
index 5f14c76fe55e1d10554b99618a0e6bfccd9f5526..09de555bc6e0a6b07f1cee8b0daabc349c33136e 100644 (file)
@@ -515,7 +515,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
        processor = PROCESSOR_AMDFAM10;
       else if (has_sse2 || has_longmode)
        processor = PROCESSOR_K8;
-      else if (has_3dnowp)
+      else if (has_3dnowp && family == 6)
        processor = PROCESSOR_ATHLON;
       else if (has_mmx)
        processor = PROCESSOR_K6;