Landing: 26058933d2a2
Project / Subsystem
gcc / x86
Date
2026-07-19
Author
H.J. Lu
Commit
26058933d2a23140131b3980908554fc6f8b1f41
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- x86
- patch_id
- —
- commit_hash
- 26058933d2a23140131b3980908554fc6f8b1f41
- source_type
- github
- headline
- Check callee-spilled register arguments on x86.
- tldr
- x86 calling convention now correctly accounts for register arguments spilled by the callee.
- author
- H.J. Lu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • abi
- • calling convention
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-19T00:00:00.000Z
The x86 calling convention logic has been updated to correctly handle register arguments that are spilled by the callee. Previously, the ix86_argument_passed_on_stack_p function ignored such spills, assuming the caller was responsible for stack alignment. A new function, ix86_spill_register_argument_p, is introduced to check for these callee-spills, improving stack argument handling accuracy and fixing PR target/126320.