Re: [PATCH] libgcc, riscv: Add restore libcalls to be used by tail calling functions

2022-03-31 Thread Palmer Dabbelt
On Tue, 29 Mar 2022 07:08:35 PDT (-0700), lewis.rev...@embecosm.com wrote: Currently the existing libcalls for restoring registers have the requirement that they must be tail called by the parent function, so that they can safely return through the restored return address register. This does

[PATCH] libgcc, riscv: Add restore libcalls to be used by tail calling functions

2022-03-29 Thread Lewis Revill
Currently the existing libcalls for restoring registers have the requirement that they must be tail called by the parent function, so that they can safely return through the restored return address register. This does impose the restriction that the libcalls cannot be used if there already exists