From: Michael Matz Date: Wed, 26 Feb 2003 12:36:18 +0000 (+0000) Subject: * ra-colorize.c (merge_moves): Fix list handling. X-Git-Tag: releases/gcc-3.4.0~8396 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c8826cdf88ffa3745fcc4bff438742b1116d42d;p=thirdparty%2Fgcc.git * ra-colorize.c (merge_moves): Fix list handling. From-SVN: r63468 --- diff --git a/gcc/ra-colorize.c b/gcc/ra-colorize.c index 074f7356dac9..359dfd861265 100644 --- a/gcc/ra-colorize.c +++ b/gcc/ra-colorize.c @@ -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;