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

            Bug ID: 102375
           Summary: (aarch64) Should allow space in target attribute
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64-*-*

Take:
void calculate(void) __attribute__ ((__target__ ("+sve, +sve2")));

Currently we produce:
<source>:1:65: error: pragma or attribute 'target(" +sve2")' is not valid
    1 | void calculate(void) __attribute__ ((__target__ ("+sve, +sve2")));
      |                                                                 ^

It is not so obvious the space is not allowed here but maybe it should be.

Reply via email to