nios2.c (TEMP_REG_NUM): Move define up in file.
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 14 Jul 2015 19:19:35 +0000 (15:19 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Tue, 14 Jul 2015 19:19:35 +0000 (15:19 -0400)
commit5faebb89f57ead4ac4ddfb88c2e9037cac2724ba
tree5aecba06e5a4ed8867879ef469cb66b9d4e515c4
parent4c1cb4da7ae9916e3dae516f360d6a438e5af5e5
nios2.c (TEMP_REG_NUM): Move define up in file.

2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
(nios2_emit_stack_limit_check): Add size parameter.  Handle
-fstack-limit-symbol as well as -fstack-limit-register.
(nios2_expand_prologue): Emit only a single stack limit check,
even if multiple stack adjustments are required.
(nios2_option_override): Diagnose unsupported combination of -fpic
and -stack-limit-symbol.

gcc/testsuite/
* gcc.target/nios2/nios2-stack-check-1.c: Adjust patterns.
* gcc.target/nios2/nios2-stack-check-2.c: Likewise.
* gcc.target/nios2/nios2-stack-check-3.c: New test case.

From-SVN: r225787
gcc/ChangeLog
gcc/config/nios2/nios2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nios2/nios2-stack-check-1.c
gcc/testsuite/gcc.target/nios2/nios2-stack-check-2.c
gcc/testsuite/gcc.target/nios2/nios2-stack-check-3.c [new file with mode: 0644]