On Sat, May 9, 2026 at 10:54 PM Takayuki 'January June' Suwa <[email protected]> wrote: > > On 2026/05/09 18:58, Max Filippov wrote: > > > I see that code generated with this change for the call0 ABI > > clobbers callee-saved registers. > It seems I misunderstood how `validate_change()` works. > > Also, this has raised a new concern, so I will post another patch later. > > --- >8 --- > No functional changes. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc > (xtensa_can_eliminate_callee_saved_reg_p): > Change the arguments that return values from being passed by pointer > to C++ reference. > (xtensa_expand_prologue): > Adjust the call to xtensa_can_eliminate_callee_saved_reg_p() to > match the above changes. > --- > gcc/config/xtensa/xtensa.cc | 18 ++++++------------ > 1 file changed, 6 insertions(+), 12 deletions(-)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max
