OSDN Git Service

* flow.c (propagate_block): Add call-clobbered registers to
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 1999 23:28:50 +0000 (23:28 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 1999 23:28:50 +0000 (23:28 +0000)
        significant too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29989 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/flow.c

index 0912479..6fe5822 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct 14 16:27:50 1999  Richard Henderson  <rth@cygnus.com>
+
+       * flow.c (propagate_block): Add call-clobbered registers to
+       significant too.
+
 Thu Oct 14 13:54:25 1999  Jason Merrill  <jason@yorick.cygnus.com>
 
        * toplev.c (main): Don't complain about options for other languages.
index 3619e28..409f8ba 100644 (file)
@@ -3433,7 +3433,11 @@ propagate_block (old, first, last, significant, bnum, flags)
                  for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
                    if (call_used_regs[i] && ! global_regs[i]
                        && ! fixed_regs[i])
-                     SET_REGNO_REG_SET (dead, i);
+                     {
+                       SET_REGNO_REG_SET (dead, i);
+                       if (significant)
+                         SET_REGNO_REG_SET (significant, i);
+                     }
 
                  /* The stack ptr is used (honorarily) by a CALL insn.  */
                  SET_REGNO_REG_SET (live, STACK_POINTER_REGNUM);