[Bug target/56068] -march=native creates Illegal instruction on KVM guests

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 21 17:33:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56068

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-21 17:32:52 UTC ---
(In reply to comment #9)
> Using -mno-avx (or replacing -march=cirei7) worked for me.

Bah, that should be "replacing -march=native with -march=corei7"

My problem was with GCC 4.6, and the avx-detection code is the same in current
releases, so if your illegal instruction is an AVX one then I doubt trying a
newer GCC will help.  The problem is in glibc's __cpuid() function not GCC.



More information about the Gcc-bugs mailing list