aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.co.uk>2000-09-12 17:54:19 +0000
committerBernd Schmidt <crux@gcc.gnu.org>2000-09-12 17:54:19 +0000
commit24948ccceea2fda22961c3a5be3e5d17552e3fd0 (patch)
tree138aeea913bbb6d58792f66b31195c2783d7bac7 /gcc/flow.c
parenta210651e53c29cbad3600ff6ab91704f9a550d93 (diff)
downloadgcc-24948ccceea2fda22961c3a5be3e5d17552e3fd0.zip
gcc-24948ccceea2fda22961c3a5be3e5d17552e3fd0.tar.gz
gcc-24948ccceea2fda22961c3a5be3e5d17552e3fd0.tar.bz2
Don't try to make autoincs with the stack pointer
From-SVN: r36370
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 12005d3..900e028 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -5699,6 +5699,7 @@ try_pre_increment_1 (pbi, insn)
int regno = REGNO (SET_DEST (x));
rtx y = pbi->reg_next_use[regno];
if (y != 0
+ && SET_DEST (x) != stack_pointer_rtx
&& BLOCK_NUM (y) == BLOCK_NUM (insn)
/* Don't do this if the reg dies, or gets set in y; a standard addressing
mode would be better. */