[Bug c++/54741] GCC 4.4, 4.5, 4.6 4.7 (probably 4.8) Generates un-usable code on AVX supported CPUs (FreeBSD)

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Mon Oct 1 11:20:00 GMT 2012


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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2012-10-01 11:20:21 UTC ---
I suspect that the BSD kernel in question doesn't support AVX, so CPUID reports
AVX but not OSXSAVE.  That would cause any AVX insn to #UD.  If this is the
case, then gcc's -march=native is in error for failing to check OSXSAVE.



More information about the Gcc-bugs mailing list