diff options
author | Martin Liska <mliska@suse.cz> | 2019-05-07 14:15:45 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-05-07 12:15:45 +0000 |
commit | 7664eeb700d9e95339f04a1c308a095b53d7a5fb (patch) | |
tree | b468ae4fecfc6cb7be9e2510940a0f01564a2975 /libcpp/init.c | |
parent | 9f708a844853eb2fe87e696d27de14cbd68896f8 (diff) | |
download | gcc-7664eeb700d9e95339f04a1c308a095b53d7a5fb.zip gcc-7664eeb700d9e95339f04a1c308a095b53d7a5fb.tar.gz gcc-7664eeb700d9e95339f04a1c308a095b53d7a5fb.tar.bz2 |
Fix bitmap registration of overheads.
2019-05-07 Martin Liska <mliska@suse.cz>
* bitmap.c (bitmap_register): Come up with
alloc_descriptor_max_uid and assign it for
a new bitmap.
(register_overhead): Use get_descriptor as
a descriptor.
(release_overhead): New.
(bitmap_elem_to_freelist): Call it.
(bitmap_elt_clear_from): Likewise.
(bitmap_obstack_free): Likewise.
(bitmap_move): Sensitively release memory.
* bitmap.h (struct GTY): Add alloc_descriptor and padding.
(bitmap_initialize): Initialize alloc_descriptor to zero.
* tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
From-SVN: r270942
Diffstat (limited to 'libcpp/init.c')
0 files changed, 0 insertions, 0 deletions