toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
authorJan Hubicka <jh@suse.cz>
Thu, 11 Sep 2008 12:17:22 +0000 (14:17 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 11 Sep 2008 12:17:22 +0000 (12:17 +0000)
commitd3492572d5a42d7cb1208050fd4a24d9972db141
tree14c4bf95881bc903031bf52e1a33cc0a335081a9
parent3c9dbe18eece0ad55ed8d8177d8061d445cf6fbc
toplev.c (dump_memory_report): Call dump_vec_loc_statistics.

* toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
* vec.c: Include hashtab.h
(vec_descriptor, ptr_hash_entry): New structures.
(vec_desc_hash, vec_ptr_map): New static variables.
(hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
register_overhead, free_overhead, vec_heap_free): New functions.
(vec_gc_o_reserve_1): ggc_free when resizing to 0.
(vec_heap_o_reserve_1): free when resizing to 0; add statistics.
(cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.

From-SVN: r140277
gcc/ChangeLog
gcc/toplev.c
gcc/vec.c
gcc/vec.h