re PR c++/59813 (tail-call elimination didn't fire for left-shift of char to cout)

PR c++/59813
	* config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
	EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.

From-SVN: r271093
This commit is contained in:
Jakub Jelinek 2019-05-11 11:33:22 +02:00 committed by Jakub Jelinek
parent c57cbfe2f7
commit b5b9147d35
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2019-05-11 Jakub Jelinek <jakub@redhat.com>
PR c++/59813
* config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):

View file

@ -5913,7 +5913,7 @@ aarch64_expand_epilogue (bool for_sibcall)
}
/* Stack adjustment for exception handler. */
if (crtl->calls_eh_return)
if (crtl->calls_eh_return && !for_sibcall)
{
/* We need to unwind the stack by the offset computed by
EH_RETURN_STACKADJ_RTX. We have already reset the CFA