]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/48743 (-march=native mis-detects AMD K6-2+ / K6-3 as Athlon - compiled...
authorQuentin Neill <quentin.neill@amd.com>
Thu, 19 Jan 2012 20:15:29 +0000 (20:15 +0000)
committerQuentin Neill <qneill@gcc.gnu.org>
Thu, 19 Jan 2012 20:15:29 +0000 (20:15 +0000)
2012-01-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: r183309

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

index 40de99b07755397a5cb8abe2163cd79198fbce1a..1619611f845abd8801acdae65603a54a7b93a301 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-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.
+
 2012-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR tree-optimization/49642
index 985a6ff5606e063cf603a8fb7928729e4a3be12b..0b5fd99d4d06ac128d8c9166b02a5af4995de415 100644 (file)
@@ -507,7 +507,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;