diff options
author | Jan Hubicka <jh@suse.cz> | 2008-09-11 14:17:22 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-09-11 12:17:22 +0000 |
commit | d3492572d5a42d7cb1208050fd4a24d9972db141 (patch) | |
tree | 14c4bf95881bc903031bf52e1a33cc0a335081a9 /gcc/vec.h | |
parent | 3c9dbe18eece0ad55ed8d8177d8061d445cf6fbc (diff) | |
download | gcc-d3492572d5a42d7cb1208050fd4a24d9972db141.zip gcc-d3492572d5a42d7cb1208050fd4a24d9972db141.tar.gz gcc-d3492572d5a42d7cb1208050fd4a24d9972db141.tar.bz2 |
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
Diffstat (limited to 'gcc/vec.h')
-rw-r--r-- | gcc/vec.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -429,7 +429,12 @@ extern void *vec_heap_p_reserve_exact (void *, int MEM_STAT_DECL); extern void *vec_heap_o_reserve (void *, int, size_t, size_t MEM_STAT_DECL); extern void *vec_heap_o_reserve_exact (void *, int, size_t, size_t MEM_STAT_DECL); +extern void dump_vec_loc_statistics (void); +#ifdef GATHER_STATISTICS +void vec_heap_free (void *); +#else #define vec_heap_free(V) free (V) +#endif #if ENABLE_CHECKING #define VEC_CHECK_INFO ,__FILE__,__LINE__,__FUNCTION__ |