bitmap.c (bitmap_ior, bitmap_ior_and_compl): Zap current as it could be deleted.
From-SVN: r218173
This commit is contained in:
parent
eef7b18cb7
commit
9e5d3a2c07
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-28 Mike Stump <mikestump@comcast.net>
|
||||||
|
|
||||||
|
* bitmap.c (bitmap_ior): Zap current as it could be deleted.
|
||||||
|
(bitmap_ior_and_compl): Likewise.
|
||||||
|
|
||||||
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
|
2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
|
||||||
|
|
||||||
PR target/64061
|
PR target/64061
|
||||||
|
@ -1595,6 +1595,8 @@ bitmap_ior (bitmap dst, const_bitmap a, const_bitmap b)
|
|||||||
if (dst_elt)
|
if (dst_elt)
|
||||||
{
|
{
|
||||||
changed = true;
|
changed = true;
|
||||||
|
/* 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_checking_assert (!dst->current == !dst->first);
|
gcc_checking_assert (!dst->current == !dst->first);
|
||||||
@ -1951,6 +1953,8 @@ bitmap_ior_and_compl (bitmap dst, const_bitmap a, const_bitmap b, const_bitmap k
|
|||||||
if (dst_elt)
|
if (dst_elt)
|
||||||
{
|
{
|
||||||
changed = true;
|
changed = true;
|
||||||
|
/* 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_checking_assert (!dst->current == !dst->first);
|
gcc_checking_assert (!dst->current == !dst->first);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user