local-alloc.c (update_equiv_regs): Update reg_equiv_init properly when moving an...
authorRichard Henderson <rth@redhat.com>
Fri, 17 Jun 2005 20:14:25 +0000 (13:14 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 17 Jun 2005 20:14:25 +0000 (13:14 -0700)
        * local-alloc.c (update_equiv_regs): Update reg_equiv_init
        properly when moving an initialization insn.

From-SVN: r101132

gcc/ChangeLog
gcc/local-alloc.c

index 4451476e364a451a6363ea1c966edfd174ed2817..9318bb82f055e2e872e50da007d671dc6e8f6b89 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-17  Richard Henderson  <rth@redhat.com>
+
+       * local-alloc.c (update_equiv_regs): Update reg_equiv_init
+       properly when moving an initialization insn.
+
 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
 
        * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
index b993d35b474ca86be1ec9c0531a85694fea3d0e4..ada6e3d2b4a05484572ffbf11d833f4bffd47d06 100644 (file)
@@ -1177,7 +1177,8 @@ update_equiv_regs (void)
                         info.  */
                      SET_REGNO_REG_SET (&cleared_regs, regno);
                      clear_regnos++;
-                     reg_equiv_init[regno] = NULL_RTX;
+                     reg_equiv_init[regno]
+                       = gen_rtx_INSN_LIST (VOIDmode, new_insn, NULL_RTX);
                    }
                }
            }