[Bug target/90524] [10/11/12 Regression] attribute name and argument mixed up in an error message

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 20 03:40:48 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90524

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux-gnu

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
aarch64 error message is good:
<source>:2:1: error: pragma or attribute 'target("foobar")' is not valid
    2 | __attribute__ ((target ("foobar"))) void foo () { }
      | ^~~~~~~~~~~~~


More information about the Gcc-bugs mailing list