]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: xtensa: fix PR target/108919
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 22 Feb 2023 22:17:11 +0000 (14:17 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 25 Feb 2023 14:03:56 +0000 (06:03 -0800)
commit461d3c84a0e5ad045ee54631901cc953d6befa20
tree918e7ead05ffd2e997a49ea12bf38f58645215d8
parentd3e427f684b0cd7cedbe7b93a06f455e562c5901
gcc: xtensa: fix PR target/108919

gcc/
PR target/108919

* config/xtensa/xtensa-protos.h
(xtensa_prepare_expand_call): Rename to xtensa_expand_call.
* config/xtensa/xtensa.cc (xtensa_prepare_expand_call): Rename
to xtensa_expand_call.
(xtensa_expand_call): Emit the call and add a clobber expression
for the static chain to it in case of windowed ABI.
* config/xtensa/xtensa.md (call, call_value, sibcall)
(sibcall_value): Call xtensa_expand_call and complete expansion
right after that call.

gcc/testsuite/
* gcc.target/xtensa/pr108919.c: New test.
gcc/config/xtensa/xtensa-protos.h
gcc/config/xtensa/xtensa.cc
gcc/config/xtensa/xtensa.md
gcc/testsuite/gcc.target/xtensa/pr108919.c [new file with mode: 0644]