Re: [PATCH] RISC-V: decouple stack allocation for rv32e w/o save-restore.

2023-04-28 Thread Jeff Law via Gcc-patches
On 4/21/23 04:07, Fei Gao wrote: Currently in rv32e, stack allocation for GPR callee-saved registers is always 12 bytes w/o save-restore. Actually, for the case without save-restore, less stack memory can be reserved. This patch decouples stack allocation for rv32e w/o save-restore and makes r

[PATCH] RISC-V: decouple stack allocation for rv32e w/o save-restore.

2023-04-21 Thread Fei Gao
Currently in rv32e, stack allocation for GPR callee-saved registers is always 12 bytes w/o save-restore. Actually, for the case without save-restore, less stack memory can be reserved. This patch decouples stack allocation for rv32e w/o save-restore and makes riscv_compute_frame_info more readable.