* bitmap.c (struct bitmap_descriptor): Remove forward declaration.
commitbb4df124a30b0d41cbfba4692a03dfaff376a6db
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2012 10:02:39 +0000 (13 10:02 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2012 10:02:39 +0000 (13 10:02 +0000)
tree46c9cfb303f00460e680848a30891bee2e57b132
parent46ce857e6b81882f8713c74ae9ccb8cb9771aa37
* bitmap.c (struct bitmap_descriptor): Remove forward declaration.
(struct bitmap_head_def): Remove desc pointer.  Add descriptor_id
field.  Reorder fields for pointer alignment.
* bitmap.c: Include vec.h.
(struct bitmap_descriptor): Rename to bitmap_descriptor_d.
(bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d.
Update all struct bitmap_descriptor references.
(next_bitmap_desc_id): New running index for bitmap desciptors.
(bitmap_descriptors): Vec of all bitmap descriptors by descriptor id.
(hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor
change.
(bitmap_descriptor): Rename function to get_bitmap_descriptor.
Stuff newly allocated bitmap descriptor into bitmap_descriptors.
Set the bitmap descriptor id.
(bitmap_register): Lookup bitmap desciptor and store its ID in
the passed bitmap.
(register_overhead): Likewise.
(bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors.
(print_statistics): Update for struct bitmap_descriptor change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194469 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/bitmap.c
gcc/bitmap.h