https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90524
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > aarch64 error message is good: > <source>:2:1: error: pragma or attribute 'target("foobar")' is not valid > 2 | __attribute__ ((target ("foobar"))) void foo () { } > | ^~~~~~~~~~~~~ arm is decent too: <source>:2:1: error: unknown target attribute or pragma 'foobar' 2 | __attribute__ ((target ("foobar"))) void foo () { } | ^~~~~~~~~~~~~ Though I do think these diagnostic should be uniform rather than have formats.