diff options
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index f43965c..6c6c978 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -477,7 +477,7 @@ bitmap_operation (to, from1, from2, operation) changed = 1; to_tmp = to_ptr; to_ptr = to_ptr->next; - to_tmp = bitmap_free; + to_tmp->next = bitmap_free; bitmap_free = to_tmp; } if (to_ptr && to_ptr->indx == indx) @@ -517,6 +517,11 @@ bitmap_operation (to, from1, from2, operation) to_tmp->indx = indx; bitmap_element_link (to, to_tmp); } + else + { + to_tmp->next = bitmap_free; + bitmap_free = to_tmp; + } } /* If we have elements of TO left over, free the lot. */ |