http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48743
--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2011-05-22 14:23:21 UTC --- Created attachment 24326 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24326 untested fix The previous patch doesn't look quite right to me. The fundamental problem IMO is that the AMD CPU type detection only looks at feature flags without considering the CPUID family value. This (untested) patch qualifies the ambiguous feature test with a family test before assuming CPU == Athlon. Does this solve your problem?