2011-12-19 Quentin Neill <quentin.neill@amd.com>
authorqneill <qneill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 17:57:32 +0000 (17:57 +0000)
committerqneill <qneill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 17:57:32 +0000 (17:57 +0000)
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.

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

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

index 484459c..8884bbf 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 5f14c76..09de555 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;