On Tue, Sep 13, 2022 at 2:58 PM Max Filippov <jcmvb...@gmail.com> wrote: > > Suwa-san, could you please take a look? > > This change fixes the fowllowing testsuite failures when building for > call0 ABI: > > g++.dg/ipa/pr60640-4.C > g++.dg/ipa/pr83549.C > g++.dg/ipa/pr83667.C > g++.dg/torture/pr81812.C > > gcc/ > * config/xtensa/xtensa.cc (xtensa_can_output_mi_thunk) > (xtensa_output_mi_thunk): New functions. > (TARGET_ASM_CAN_OUTPUT_MI_THUNK) > (TARGET_ASM_OUTPUT_MI_THUNK): New macro definitions. > (xtensa_prepare_expand_call): Use fixed register a8 as temporary > when called with reload_completed set to 1. > --- > gcc/config/xtensa/xtensa.cc | 116 +++++++++++++++++++++++++++++++++++- > 1 file changed, 115 insertions(+), 1 deletion(-)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max