]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* ra-colorize.c (merge_moves): Fix list handling.
authorMichael Matz <matz@gcc.gnu.org>
Wed, 26 Feb 2003 12:36:18 +0000 (12:36 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Wed, 26 Feb 2003 12:36:18 +0000 (12:36 +0000)
From-SVN: r63468

gcc/ra-colorize.c

index 074f7356dac95b4e2b9a54c931a3b6ccedaa1fd9..359dfd86126524477b5a9632ca1d6488f00dc8ef 100644 (file)
@@ -534,13 +534,14 @@ merge_moves (u, v)
      struct web *u, *v;
 {
   regset seen;
-  struct move_list *ml;
+  struct move_list *ml, *ml_next;
 
   seen = BITMAP_XMALLOC ();
   for (ml = u->moves; ml; ml = ml->next)
     bitmap_set_bit (seen, INSN_UID (ml->move->insn));
-  for (ml = v->moves; ml; ml = ml->next)
+  for (ml = v->moves; ml; ml = ml_next)
     {
+      ml_next = ml->next;
       if (! bitmap_bit_p (seen, INSN_UID (ml->move->insn)))
         {
          ml->next = u->moves;