The following adds a check that the global bitmap obstack is initialized
when allocating a bitmap from it.
* bitmap.cc (bitmap_alloc): When using the global bitmap obstack
assert that is initialized.
bitmap map;
if (!bit_obstack)
- bit_obstack = &bitmap_default_obstack;
+ {
+ gcc_assert (bitmap_default_obstack_depth > 0);
+ bit_obstack = &bitmap_default_obstack;
+ }
map = bit_obstack->heads;
if (map)
bit_obstack->heads = (class bitmap_head *) map->first;