https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104797
Bug ID: 104797 Summary: too many parentheses in diagnostic for __delay_cycles Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- Target: msp430 >From msp430.cc: > error ("%<__delay_cycles()%> only takes constant arguments"); > error ("%<__delay_cycles%> only takes non-negative cycle counts"); The parentheses in the first message above have recently been added. They are wrong. It's the function that takes arguments, not the function call. For consistency the parentheses should be removed again from the diagnostic.