aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
authorSeongbae Park <seongbae.park@gmail.com>2007-02-14 05:01:14 +0000
committerSeongbae Park <spark@gcc.gnu.org>2007-02-14 05:01:14 +0000
commit5ce02e408d349c57b58d0906401dbd0d13c2f44a (patch)
tree6c99d079c71b87ee4eb68498c40e40ba0c09890d /gcc/bitmap.c
parentc147eacb9d2972a2adbabe57dcd28c327cc8c28a (diff)
downloadgcc-5ce02e408d349c57b58d0906401dbd0d13c2f44a.zip
gcc-5ce02e408d349c57b58d0906401dbd0d13c2f44a.tar.gz
gcc-5ce02e408d349c57b58d0906401dbd0d13c2f44a.tar.bz2
bitmap.c (bitmap_and, [...]): Ensure dst->current is valid.
2007-02-13 Seongbae Park <seongbae.park@gmail.com> * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor): Ensure dst->current is valid. From-SVN: r121903
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r--gcc/bitmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index 83b553c..96889e0 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -797,6 +797,8 @@ bitmap_and (bitmap dst, bitmap a, bitmap b)
b_elt = b_elt->next;
}
}
+ /* Ensure that dst->current is valid. */
+ dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first);
if (dst->current)
@@ -910,6 +912,8 @@ bitmap_and_compl (bitmap dst, bitmap a, bitmap b)
b_elt = b_elt->next;
}
}
+ /* Ensure that dst->current is valid. */
+ dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first);
if (dst->current)
@@ -1396,6 +1400,8 @@ bitmap_xor (bitmap dst, bitmap a, bitmap b)
dst_elt = dst_elt->next;
}
}
+ /* Ensure that dst->current is valid. */
+ dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first);
if (dst->current)