Landing: b06b1ea15055
Project / Subsystem
gcc / x86
Date
2026-07-31
Author
H.J. Lu
Commit
b06b1ea150558cfe83111b48b94b4297cb3dec05
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- x86
- patch_id
- —
- commit_hash
- b06b1ea150558cfe83111b48b94b4297cb3dec05
- source_type
- github
- headline
- x86: Use DECL_INCOMING_RTL to check for stack argument passing
- tldr
- Improves x86 argument passing checks by using DECL_INCOMING_RTL for memory operand detection.
- author
- H.J. Lu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • abi
- • stack
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-31T00:00:00.000Z
This commit refines how GCC determines if arguments are passed on the stack for the x86 architecture. It updates the ix86_argument_passed_on_stack_p function to check the DECL_INCOMING_RTL of an argument. If DECL_INCOMING_RTL points to a memory operand, the argument is now correctly identified as being passed on the stack. This change addresses several PRs related to argument passing on the stack and removes an obsolete function.