xtensa: fix PR target/90922
Stack pointer adjustment code in prologue missed a case of no callee-saved registers and a stack frame size bigger than 128 bytes. Handle that case. This fixes the following gcc tests with call0 ABI: gcc.c-torture/execute/stdarg-2.c gcc.dg/torture/pr55882.c gcc.dg/torture/pr57569.c 2019-06-18 Max Filippov <jcmvbkbc@gmail.com> gcc/ * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack pointer adjustment for the case of no callee-saved registers and stack frame bigger than 128 bytes. From-SVN: r272455
This commit is contained in:
parent
8701b671ee
commit
1fe39f194c
|
@ -1,3 +1,10 @@
|
|||
2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
|
||||
|
||||
PR target/90922
|
||||
* config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
|
||||
pointer adjustment for the case of no callee-saved registers and
|
||||
stack frame bigger than 128 bytes.
|
||||
|
||||
2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
PR middle-end/90862
|
||||
|
|
|
@ -2865,7 +2865,8 @@ xtensa_expand_prologue (void)
|
|||
gen_rtx_SET (mem, reg));
|
||||
}
|
||||
}
|
||||
if (total_size > 1024)
|
||||
if (total_size > 1024
|
||||
|| (!callee_save_size && total_size > 128))
|
||||
{
|
||||
rtx tmp_reg = gen_rtx_REG (Pmode, A9_REG);
|
||||
emit_move_insn (tmp_reg, GEN_INT (total_size -
|
||||
|
|
Loading…
Reference in New Issue