]> 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>
Mon, 21 Jul 2025 13:27:36 +0000 (15:27 +0200)
commitb441d735c092f5d60c4a9c7167ed9153003d49fa
tree39b2781004b342737d8e0cd4b7f02d5eea8409c7
parentbd9fc3a53ff91b846b5999a91438f835e1ed64f5
[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.
gcc/config/riscv/riscv.cc