diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-30 12:36:05 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-30 11:36:05 +0000 |
commit | 1e0f41c9d2779b52fa385510c4c3375be596f1ff (patch) | |
tree | a35d691168463d8f2f27f6683446c3a04b212411 /gcc/alloc-pool.h | |
parent | 048b0d2ef95ac9432d33e780f0e6d3337e966244 (diff) | |
download | gcc-1e0f41c9d2779b52fa385510c4c3375be596f1ff.tar.gz |
alloc-pool.c: Include hashtab.h
* 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.
From-SVN: r76951
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 |