Landing: 37807a10d881
Project / Subsystem
gcc / gcc/c-family/attributes
Date
2026-07-30
Author
Josef Melcr
Commit
37807a10d8816f650d38d6f59a4e230ddc9f785a
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/c-family/attributes
- patch_id
- —
- commit_hash
- 37807a10d8816f650d38d6f59a4e230ddc9f785a
- source_type
- github
- headline
- Use positional_argument in callback_only attribute handler
- tldr
- Unified attribute diagnostics by using positional_argument and downgrading errors to warnings.
- author
- Josef Melcr
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • attributes
- • diagnostics
- • c-family
- • gcc
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-30T00:00:00.000Z
The handler for the callback_only attribute in GCC’s C-family frontends has been updated to use the positional_argument utility for bounds checking. This change harmonizes diagnostic reporting by downgrading attribute errors to warnings, aligning them with the behavior of positional_argument and improving diagnostic consistency for attribute usage.