aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-01-30 11:36:05 +0000
committerJan Hubicka <jh@suse.cz>2004-01-30 11:36:05 +0000
commitc279824395d242e87c3aa32885fb7024b62fe21a (patch)
treea35d691168463d8f2f27f6683446c3a04b212411 /gcc/alloc-pool.h
parent9afea70ede6cf0a945ba7b79128b567ccf712973 (diff)
* 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: https://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.h3
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