On 7/24/25 1:53 AM, Andreas Schwab wrote:
From: Alexey Merzlyakov <alexey.merzlya...@samsung.com>
Fixes incorrect SP-addresses used in CFA notes for the stack probes
unrelative to the frame's top. It applied to the RISC-V targets code
generation when the stack-clash protection is enabled.
PR target/120714
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_allocate_and_probe_stack_space):
Fix SP-addresses in REG_CFA_DEF_CFA notes for stack-clash case.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr120714.c: New test.
OK. Feel free to cherry-pick this kind of thing without waiting on
approvals. I'm trying to keep on top of the backports for gcc-15, but
I'm a bit slammed right now.
jeff