diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-11-19 09:30:19 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-11-19 09:30:19 +0100 |
commit | 397d0df98c972375682078d74e90eaf4f09c3748 (patch) | |
tree | e5c89f28712764e4fd88032f4e00896a1d80e584 /gcc/config | |
parent | 46ce03de3afe6dcd7b23572ada199c28ffc10e70 (diff) | |
download | gcc-397d0df98c972375682078d74e90eaf4f09c3748.zip gcc-397d0df98c972375682078d74e90eaf4f09c3748.tar.gz gcc-397d0df98c972375682078d74e90eaf4f09c3748.tar.bz2 |
re PR target/67770 (i386: -fshrink-wrap can interact badly with trampolines)
PR target/67770
* config/i386/i386.md (simple_return): Disable if
ix86_static_chain_on_stack is true.
* gcc.target/i386/pr67770.c: New test.
From-SVN: r230593
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 39b058f..4c5e22a 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -12203,10 +12203,14 @@ ;; We need to disable this for TARGET_SEH, as otherwise ;; shrink-wrapped prologue gets enabled too. This might exceed ;; the maximum size of prologue in unwind information. +;; Also disallow shrink-wrapping if using stack slot to pass the +;; static chain pointer - the first instruction has to be pushl %esi +;; and it can't be moved around, as we use alternate entry points +;; in that case. (define_expand "simple_return" [(simple_return)] - "!TARGET_SEH" + "!TARGET_SEH && !ix86_static_chain_on_stack" { if (crtl->args.pops_args) { |