OSDN Git Service

* local-alloc.c (update_equiv_regs): Update reg_equiv_init
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jun 2005 20:14:25 +0000 (20:14 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Jun 2005 20:14:25 +0000 (20:14 +0000)
        properly when moving an initialization insn.

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

gcc/ChangeLog
gcc/local-alloc.c

index 4451476..9318bb8 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 b993d35..ada6e3d 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);
                    }
                }
            }