Re: RISC-V sibcall optimization with save-restore

2019-03-20 Thread Jim Wilson
On 3/20/19 5:25 AM, Paulo Matos wrote: I am working on trying to get RISC-V 32 emitting sibcalls even in the present of `-msave-restore`, for a client concerned with generated code size. This won't work unless you define a new set of restore functions. The current ones restore the return addr

RISC-V sibcall optimization with save-restore

2019-03-20 Thread Paulo Matos
Hi, I am working on trying to get RISC-V 32 emitting sibcalls even in the present of `-msave-restore`, for a client concerned with generated code size. Take a look at what current gcc generates for: int __attribute__ ((noinline)) bar () { return 3; } int __attribute__ ((noinline))