https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108919
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Max Filippov <jcmvb...@gcc.gnu.org>: https://gcc.gnu.org/g:461d3c84a0e5ad045ee54631901cc953d6befa20 commit r13-6342-g461d3c84a0e5ad045ee54631901cc953d6befa20 Author: Max Filippov <jcmvb...@gmail.com> Date: Wed Feb 22 14:17:11 2023 -0800 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.