Commit 5ce02e40 by Seongbae Park Committed by Seongbae Park

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
parent c147eacb
2007-02-13 Seongbae Park <seongbae.park@gmail.com>
* bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
Ensure dst->current is valid.
2007-02-13 Paul Brook <paul@codesourcery.com> 2007-02-13 Paul Brook <paul@codesourcery.com>
* config.gcc: Add arm*-*-uclinux-*eabi. * config.gcc: Add arm*-*-uclinux-*eabi.
......
...@@ -797,6 +797,8 @@ bitmap_and (bitmap dst, bitmap a, bitmap b) ...@@ -797,6 +797,8 @@ bitmap_and (bitmap dst, bitmap a, bitmap b)
b_elt = b_elt->next; b_elt = b_elt->next;
} }
} }
/* Ensure that dst->current is valid. */
dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt); bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first); gcc_assert (!dst->current == !dst->first);
if (dst->current) if (dst->current)
...@@ -910,6 +912,8 @@ bitmap_and_compl (bitmap dst, bitmap a, bitmap b) ...@@ -910,6 +912,8 @@ bitmap_and_compl (bitmap dst, bitmap a, bitmap b)
b_elt = b_elt->next; b_elt = b_elt->next;
} }
} }
/* Ensure that dst->current is valid. */
dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt); bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first); gcc_assert (!dst->current == !dst->first);
if (dst->current) if (dst->current)
...@@ -1396,6 +1400,8 @@ bitmap_xor (bitmap dst, bitmap a, bitmap b) ...@@ -1396,6 +1400,8 @@ bitmap_xor (bitmap dst, bitmap a, bitmap b)
dst_elt = dst_elt->next; dst_elt = dst_elt->next;
} }
} }
/* Ensure that dst->current is valid. */
dst->current = dst->first;
bitmap_elt_clear_from (dst, dst_elt); bitmap_elt_clear_from (dst, dst_elt);
gcc_assert (!dst->current == !dst->first); gcc_assert (!dst->current == !dst->first);
if (dst->current) if (dst->current)
......
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