On 6/26/25 7:51 AM, Raphael Moreira Zinsly wrote:
The CFI output for when we do stack probing in a loop were not
accounting for the first sp adjustments, we can fix that by using the
frame's total size.
This is already being tested by g++.dg/torture/pr119610.C.

gcc/ChangeLog:
        gcc/config/riscv/riscv.cc
        (riscv_allocate_and_probe_stack_space): Use the total frame size
        instead of the current adjustment size to set the CFI.

gcc/testsuite/ChangeLog:
        gcc.target/riscv/stack-check-cfa-2.c: Fix expected output.
OK.  Thanks for jumping on this.

Jeff


Reply via email to