Re: [PATCH 1/1] RISC-V: fix stack access before allocation.

2022-11-28 Thread Jeff Law via Gcc-patches
On 11/27/22 22:28, Fei Gao wrote: In current riscv stack frame allocation, 2 steps are used. The first step allocates memories at least for callee saved GPRs and FPRs, and the second step allocates the rest if stack size is greater than signed 12-bit range. But it's observed in some cases, l

[PATCH 1/1] RISC-V: fix stack access before allocation.

2022-11-27 Thread Fei Gao
In current riscv stack frame allocation, 2 steps are used. The first step allocates memories at least for callee saved GPRs and FPRs, and the second step allocates the rest if stack size is greater than signed 12-bit range. But it's observed in some cases, like gcc.target/riscv/stack_frame.c in

[PATCH 1/1] RISC-V: fix stack access before allocation.

2022-11-27 Thread Fei Gao
In current riscv stack frame allocation, 2 steps are used. The first step allocates memories at least for callee saved GPRs and FPRs, and the second step allocates the rest if stack size is greater than signed 12-bit range. But it's observed in some cases, like gcc.target/riscv/stack_frame.c in