]> git.ipfire.org Git - thirdparty/gcc.git/commit
bitmap.c (struct bitmap_descriptor): Remove forward declaration.
authorSteven Bosscher <steven@gcc.gnu.org>
Thu, 13 Dec 2012 10:02:39 +0000 (10:02 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Thu, 13 Dec 2012 10:02:39 +0000 (10:02 +0000)
commit3c53f55a97cc10a3cc4e4dabe9e90f98537baf33
tree46c9cfb303f00460e680848a30891bee2e57b132
parenta044f0e7916bbae7ac17d7079e9aee6cfaf5cf08
bitmap.c (struct bitmap_descriptor): Remove forward declaration.

* 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.

From-SVN: r194469
gcc/ChangeLog
gcc/bitmap.c
gcc/bitmap.h