From 5ce02e408d349c57b58d0906401dbd0d13c2f44a Mon Sep 17 00:00:00 2001 From: Seongbae Park Date: Wed, 14 Feb 2007 05:01:14 +0000 Subject: [PATCH] bitmap.c (bitmap_and, [...]): Ensure dst->current is valid. 2007-02-13 Seongbae Park * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor): Ensure dst->current is valid. From-SVN: r121903 --- gcc/ChangeLog | 5 +++++ gcc/bitmap.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 647cff1daf7..b3440c242eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-13 Seongbae Park + + * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor): + Ensure dst->current is valid. + 2007-02-13 Paul Brook * config.gcc: Add arm*-*-uclinux-*eabi. diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 83b553cd5c2..96889e0c7a4 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)