Landing: 4b0865a05625

Project / Subsystem

gcc / gcc

Date

2026-08-10

Author

Josef Melcr

Commit

4b0865a0562575358c93edac3d7c20a10422c628

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
4b0865a0562575358c93edac3d7c20a10422c628
source_type
github
headline
Reject variadic functions with callback_only attribute
tldr
callback_only attribute handler now rejects variadic functions and updates documentation.
author
Josef Melcr
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • attribute
  • • validation
  • • documentation
discussion_id_link
—
bugzilla_pr
—
date
2026-08-10T00:00:00.000Z

GCC’s callback_only attribute handler has been updated to explicitly reject variadic functions. Previously, the handler and attribute implementation implicitly assumed non-variadic functions, which could lead to undefined behavior. This change adds necessary checks and updates documentation to reflect this restriction, ensuring correct usage of the attribute.