diff options
author | Quentin Neill <quentin.neill@amd.com> | 2011-12-19 17:57:32 +0000 |
---|---|---|
committer | Quentin Neill <qneill@gcc.gnu.org> | 2011-12-19 17:57:32 +0000 |
commit | f7593cb4c6cf026f8293ea7634eb49f5639a1b92 (patch) | |
tree | 23f0c0132a9f9d2fba17a4d381b2fa04c31e55ab /gcc | |
parent | 7e54c6084da692073648d73aaa36dc06f562abc7 (diff) | |
download | gcc-f7593cb4c6cf026f8293ea7634eb49f5639a1b92.zip gcc-f7593cb4c6cf026f8293ea7634eb49f5639a1b92.tar.gz gcc-f7593cb4c6cf026f8293ea7634eb49f5639a1b92.tar.bz2 |
re PR target/48743 (-march=native mis-detects AMD K6-2+ / K6-3 as Athlon - compiled C fails with "illegal instruction")
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/driver-i386.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 484459c..8884bbfe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 5f14c76..09de555 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -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; |