Commit f7593cb4 by Quentin Neill Committed by Quentin Neill

re PR target/48743 (-march=native mis-detects AMD K6-2+ / K6-3 as Athlon -…

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
parent 7e54c608
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> 2011-12-19 Richard Guenther <rguenther@suse.de>
PR lto/51573 PR lto/51573
...@@ -515,7 +515,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -515,7 +515,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
processor = PROCESSOR_AMDFAM10; processor = PROCESSOR_AMDFAM10;
else if (has_sse2 || has_longmode) else if (has_sse2 || has_longmode)
processor = PROCESSOR_K8; processor = PROCESSOR_K8;
else if (has_3dnowp) else if (has_3dnowp && family == 6)
processor = PROCESSOR_ATHLON; processor = PROCESSOR_ATHLON;
else if (has_mmx) else if (has_mmx)
processor = PROCESSOR_K6; processor = PROCESSOR_K6;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment