diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-30 11:36:05 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-30 11:36:05 +0000 |
commit | 7fec61de214d7c5c0e686f33992d280781aeaadc (patch) | |
tree | a35d691168463d8f2f27f6683446c3a04b212411 /gcc/alloc-pool.h | |
parent | 605e65d94842fcee1361eade4b0946d17b7e4a00 (diff) | |
download | gcc-7fec61de214d7c5c0e686f33992d280781aeaadc.tar.gz |
* alloc-pool.c: Include hashtab.h
(alloc_pool_descriptor): New structure
(alloc_pool_hash): New global variable.
(hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
(create_alloc_pool): Update statistics.
(free_alloc_pool): Likewise.
(pool_alloc): Likewise.
(output_info): New structure
(print_statistics, dump_alloc_pool_statistics): New function.
* alloc-pool.h (alloc_pool_def): Turn name to be constant.
(dump_alloc_pool_statistics): Declare.
* toplev.c (finalize): Dump statistics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r-- | gcc/alloc-pool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 48d017217a9..6364fbcf1ae 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -32,7 +32,7 @@ typedef struct alloc_pool_list_def typedef struct alloc_pool_def { - char *name; + const char *name; #ifdef ENABLE_CHECKING ALLOC_POOL_ID_TYPE id; #endif @@ -51,4 +51,5 @@ extern alloc_pool create_alloc_pool (const char *, size_t, size_t); extern void free_alloc_pool (alloc_pool); extern void *pool_alloc (alloc_pool); extern void pool_free (alloc_pool, void *); +extern void dump_alloc_pool_statistics (void); #endif |