From: Bernd Schmidt Date: Tue, 12 Sep 2000 17:54:19 +0000 (+0000) Subject: Don't try to make autoincs with the stack pointer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24948ccceea2fda22961c3a5be3e5d17552e3fd0;p=gcc.git Don't try to make autoincs with the stack pointer From-SVN: r36370 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dcf1028093c..d6e3caabe32 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-12 Bernd Schmidt + + * flow.c (try_pre_increment_1): Don't do anything to sets of the stack + pointer. + 2000-09-12 Kaveh R. Ghazi * builtins.c (built_in_decls): New array. diff --git a/gcc/flow.c b/gcc/flow.c index 12005d3b0fa..900e0284991 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. */