[PATCH] RISC-V: Disable remove unneeded save-restore call optimization if there are any arguments on stack.

Jim Wilson jimw@sifive.com
Wed Jul 8 19:39:17 GMT 2020


On Tue, Jul 7, 2020 at 12:28 AM Kito Cheng <kito.cheng@sifive.com> wrote:
> gcc/ChangeLog:
>         * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
>         Abort if any arguments on stack.
> gcc/testsuite/ChangeLog
>         * gcc.target/riscv/save-restore-9.c: New.

Looks good to me.

Jim


More information about the Gcc-patches mailing list