]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RISC-V] Fix wrong CFA during stack probe
authorAndreas Schwab <schwab@suse.de>
Wed, 16 Jul 2025 12:48:51 +0000 (14:48 +0200)
committerAndreas Schwab <schwab@suse.de>
Thu, 31 Jul 2025 10:51:41 +0000 (12:51 +0200)
commitc70696b3daaaa45043be5cd7219e15894bc32e50
tree938d59e7ab3862acfa7ba9a84b6fd8782780e2d2
parent46860078a0dc147b76ad0cc660b021c6e5b7bb81
[RISC-V] Fix wrong CFA during stack probe

temp1 is used by the probe loop for the step size, but we need the final
address of the stack after the loop which resides in temp2.

PR target/121121
* config/riscv/riscv.cc (riscv_allocate_and_probe_stack_space):
Use temp2 instead of temp1 for the CFA note.

(cherry picked from commit b441d735c092f5d60c4a9c7167ed9153003d49fa)
gcc/config/riscv/riscv.cc