i386: Don't convert stack operations to pushes if using a redzone.
authorBernd Schmidt <bernds@redhat.com>
Fri, 15 Apr 2016 13:35:12 +0000 (13:35 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 15 Apr 2016 13:35:12 +0000 (13:35 +0000)
commit10e547d6198f5eb70dba5c9e0d4b243704447d5b
tree478163cf1c70042b4249ec6e744a4e504dbaf05b
parent1e77281b13f7422dda5c2e9f2e72efc364a1d156
i386: Don't convert stack operations to pushes if using a redzone.

* config/i386/i386-protos.h (ix86_using_red_zone): Declare.
* config/i386/i386.c (ix86_using_red_zone): No longer static.
* config/i386/i386.md (stack decrement to push peepholes): Guard
with !x86_using_red_zone ().

testsuite/
* gcc.target/i386/pr46470.c: Add -mno-red-zone to dg-options for
x86_64.

From-SVN: r235028
gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr46470.c