]> git.ipfire.org Git - thirdparty/gcc.git/commit
lm32: Skip last named param when computing save varargs regs
authorKeith Packard <keithp@keithp.com>
Thu, 16 Jan 2025 05:05:46 +0000 (22:05 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 16 Jan 2025 05:05:46 +0000 (22:05 -0700)
commit6e593fcda49b1001e87e94ab709607b4fb2c66cf
tree2ab7e7b13d4aa59ff0ad5fa2dc5af18a51ed6d0c
parent3184f6a565ed5efab39faf9eee764f393c74442d
lm32: Skip last named param when computing save varargs regs

The cumulative args value in setup_incoming_varargs points at
the last named parameter. We need to skip over that (if present) to
get to the first anonymous argument as we only want to include
those anonymous args in the saved register block.

gcc/
* config/lm32/lm32.cc (lm32_setup_incoming_varargs): Skip last
named parameter when preparing to flush registers with unnamed
arguments to th stack.
gcc/config/lm32/lm32.cc