bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
authorRichard Biener <rguenther@suse.de>
Fri, 7 Oct 2016 10:06:24 +0000 (10:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 7 Oct 2016 10:06:24 +0000 (10:06 +0000)
commita30fe4b68120118221578b111036fa5fea0d25b3
treeb23b27954b915b8b7d050e18c30416a85b78a564
parenta93cdc5c6f1d56226c3ef7b69423a4074783de34
bitmap.c (bitmap_elem_to_freelist): Set indx to -1.

2016-10-07  Richard Biener  <rguenther@suse.de>

* bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
* bitmap.h (bmp_iter_set): When advancing to the next element
check that we didn't remove the current one.
(bmp_iter_and): Likewise.
(bmp_iter_and_compl): Likewise.
* tree-ssa.c (release_defs_bitset): Do not remove worklist bit
we currently iterate on but keep a one-level queue.
* sched-deps.c (remove_from_deps): Do not clear current bit
but keep a one-level queue.

From-SVN: r240859
gcc/ChangeLog
gcc/bitmap.c
gcc/bitmap.h
gcc/sched-deps.c
gcc/tree-ssa.c