re PR target/40657 (allocate local variables with fewer instructions)
authorBernd Schmidt <bernds@codesourcery.com>
Fri, 9 Jul 2010 09:03:22 +0000 (09:03 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 9 Jul 2010 09:03:22 +0000 (09:03 +0000)
commite784c52cd2d0599cc29c8a66240af64cfac79371
treebe889d32ba5885b93f3e713bd003853799f88d3b
parentac2856486dd4f460c7cdb0db6a027df6010fee49
re PR target/40657 (allocate local variables with fewer instructions)

PR target/40657
* config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
All callers changed.
Handle the case when we're called for the epilogue.
(thumb_unexpanded_epilogue): Use it.
(thumb1_expand_epilogue): Likewise.

testsuite/
PR target/40657
* gcc.target/arm/pr40657-1.c: New test.
* gcc.target/arm/pr40657-2.c: New test.
* gcc.c-torture/execute/pr40657.c: New test.

From-SVN: r161988
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr40657.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/pr40657-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/pr40657-2.c [new file with mode: 0644]