Don't try to make autoincs with the stack pointer
authorBernd Schmidt <bernds@redhat.co.uk>
Tue, 12 Sep 2000 17:54:19 +0000 (17:54 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Tue, 12 Sep 2000 17:54:19 +0000 (17:54 +0000)
From-SVN: r36370

gcc/ChangeLog
gcc/flow.c

index dcf1028093cf599b815f03bb04e3171e42fafe60..d6e3caabe322292ad25088f71c212028fbcdd8f2 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
+       pointer.
+
 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * builtins.c (built_in_decls): New array.
index 12005d3b0fa2b57894e97abbe9e22054bb76e8a1..900e028499106a563536af41aa20c759599e5244 100644 (file)
@@ -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.  */