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

            Bug ID: 122291
           Summary: Incorrect URL for "target" attribute in the diagnostic
                    message
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

On x86-64:

$ cat t.c
[[gnu::target("nonexist")]] int main() {}
$ gcc t.c
t.c:1:33: error: attribute 'target' argument 'nonexist' is unknown
    1 | [[gnu::target("nonexist")]] int main() {}
      |                                 ^~~~

The URL of 'target' is
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/ARM-Function-Attributes.html#index-target-function-attribute-1,
but we want
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Common-Function-Attributes.html#index-target-function-attribute
or better
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/x86-Function-Attributes.html#index-target-function-attribute-4.

Reply via email to