https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90524
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|attribute name and argument |[10/11/12 Regression] |mixed up in an error |attribute name and argument |message |mixed up in an error | |message Last reconfirmed|2019-05-17 00:00:00 |2021-12-19 Known to work| |9.4.0 Target Milestone|--- |10.4 Known to fail| |10.1.0 Version|9.0 |10.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Before GCC 10, GCC would produce: <source>:2:1: error: attribute(target("foobar")) is unknown 2 | __attribute__ ((target ("foobar"))) void foo () { } | ^~~~~~~~~~~~~ Which I think is reasonable. So this is a regression from GCC 9.4.0.