]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH v2] RISC-V: Fix type of CFA during stack probe [PR122114]
authorRaphael Moreira Zinsly <rzinsly@ventanamicro.com>
Sat, 4 Oct 2025 14:36:48 +0000 (08:36 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sat, 4 Oct 2025 14:36:48 +0000 (08:36 -0600)
commitab429ea91d50e5ddb8eb5bc2098c6a476860a01b
tree3d4daaa5a3aca8575dd7d10947e377cc39313ae7
parente037693f66823c168ed7d37ae70b3cd5aa757b1e
[PATCH v2] RISC-V: Fix type of CFA during stack probe [PR122114]

Changes since v1:
- Limit test to rv64.

-->8--

frame.total_size may not be a constant, this patch changes the type of
the stored cfa offset to avoid errors trying to convert the frame size.

PR target/122114
gcc/ChangeLog:
* config/riscv/riscv.cc
(riscv_allocate_and_probe_stack_space): Change initial_cfa_offset
type.

gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr122114.c: New test.
gcc/config/riscv/riscv.cc
gcc/testsuite/gcc.target/riscv/pr122114.c [new file with mode: 0644]