diff options
author | Michael Matz <matz@gcc.gnu.org> | 2003-02-26 12:36:18 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2003-02-26 12:36:18 +0000 |
commit | 4c8826cdf88ffa3745fcc4bff438742b1116d42d (patch) | |
tree | 45280d6632934f34354a9c80c188a7517355fbdc /gcc | |
parent | f6e91562aadcf0821bf65b4ddf979f9e7eaba9e8 (diff) | |
download | gcc-4c8826cdf88ffa3745fcc4bff438742b1116d42d.zip gcc-4c8826cdf88ffa3745fcc4bff438742b1116d42d.tar.gz gcc-4c8826cdf88ffa3745fcc4bff438742b1116d42d.tar.bz2 |
* ra-colorize.c (merge_moves): Fix list handling.
From-SVN: r63468
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ra-colorize.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ra-colorize.c b/gcc/ra-colorize.c index 074f735..359dfd8 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; |