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
This commit is contained in:
Seongbae Park 2007-02-14 05:01:14 +00:00 committed by Seongbae Park
parent c147eacb9d
commit 5ce02e408d
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* config.gcc: Add arm*-*-uclinux-*eabi.

View File

@ -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)