https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59697
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Summary|Function attribute |Function attribute |__target_(("no-avx)) work |__target_(("no-avx)) does |on Windows/mingw but fails |not work |on Linux. | Keywords| |rejects-valid Last reconfirmed| |2021-09-16 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The target header files don't turn off what was turned on via the command line which causes the inline functions not to be usable that way. In older versions of GCC this produced wrong code but in newer versions GCC rejects the code. Note clang has the same behavior ...