On Mon, Jun 16, 2025 at 6:33 AM Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp> wrote: > > This patch implements the target-specific ZERO_CALL_USED_REGS hook, since > if -fzero-call-used-regs=all the default hook tries to assign 0 to B0 > (bit 0 of the BR register) and the ICE will be thrown. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc (xtensa_zero_call_used_regs): > New prototype and function. > (TARGET_ZERO_CALL_USED_REGS): Define macro. > --- > gcc/config/xtensa/xtensa.cc | 56 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max