Commit 4c8826cd by Michael Matz

* ra-colorize.c (merge_moves): Fix list handling.

From-SVN: r63468
parent f6e91562
...@@ -534,13 +534,14 @@ merge_moves (u, v) ...@@ -534,13 +534,14 @@ merge_moves (u, v)
struct web *u, *v; struct web *u, *v;
{ {
regset seen; regset seen;
struct move_list *ml; struct move_list *ml, *ml_next;
seen = BITMAP_XMALLOC (); seen = BITMAP_XMALLOC ();
for (ml = u->moves; ml; ml = ml->next) for (ml = u->moves; ml; ml = ml->next)
bitmap_set_bit (seen, INSN_UID (ml->move->insn)); 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))) if (! bitmap_bit_p (seen, INSN_UID (ml->move->insn)))
{ {
ml->next = u->moves; ml->next = u->moves;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment