xtensa: fix PR target/90922
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 18 Jun 2019 22:19:12 +0000 (22:19 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 18 Jun 2019 22:19:12 +0000 (22:19 +0000)
commit1fe39f194c83e0189a239edf44d9db191c1625fa
tree1392f259dd9baadf9358f966cf76df3bc2deabfa
parent8701b671ee19eaf54c4fc67d27ed0a2b57467f94
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
gcc/ChangeLog
gcc/config/xtensa/xtensa.c