diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2003-04-06 21:44:09 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2003-04-06 21:44:09 +0000 |
commit | 95ec27aaf200a8edf40d2dc9e7b3baef84fdf30e (patch) | |
tree | 7049cd5a93a5c7b5d3d7721a23bd9ce4c33110ec /gcc/tree.c | |
parent | 62e64b0b86d3e084eb7eddebf7187ae19efd9c7d (diff) | |
download | gcc-95ec27aaf200a8edf40d2dc9e7b3baef84fdf30e.zip gcc-95ec27aaf200a8edf40d2dc9e7b3baef84fdf30e.tar.gz gcc-95ec27aaf200a8edf40d2dc9e7b3baef84fdf30e.tar.bz2 |
hashtable.c (gcc_obstack_init): Delete this function and everything related to it.
2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
* hashtable.c (gcc_obstack_init): Delete this function
and everything related to it.
* hashtable.h: Remove prototype.
* bitmap.c (bitmap_element_allocate): Cleanup redundant
defines. Cleanup some unnecessary whitespace.
* defaults.h (obstack_chunk_alloc): Redefine with
appropriate casts for libiberty obstacks.
(obstack_chunk_free): Ditto.
(OBSTACK_CHUNK_SIZE): Define, default to 0.
(gcc_obstack_init): Define as a call to _obstack_begin.
* tree.c (print_obstack_statistics): Delete this unused
function.
* tree.h (obstack): Don't forward-declare.
(print_obstack_statistics): Delete prototype.
(print_obstack_name): Ditto.
(gcc_obstack_init): Ditto.
* rtl.h (gcc_obstack_init): Ditto.
* java/jv-scan.c (gcc_obstack_init): Delete this
function, its prototype and related defines.
* java/jvgenmain.c (gcc_obstack_init): Delete this
function, and related defines.
* java/parse-scan.y (obstack_chunk_alloc): Don't define.
(obstack_chunk_free): Ditto
From-SVN: r65308
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -4255,29 +4255,6 @@ get_callee_fndecl (call) return NULL_TREE; } -/* Print debugging information about the obstack O, named STR. */ - -void -print_obstack_statistics (str, o) - const char *str; - struct obstack *o; -{ - struct _obstack_chunk *chunk = o->chunk; - int n_chunks = 1; - int n_alloc = 0; - - n_alloc += o->next_free - chunk->contents; - chunk = chunk->prev; - while (chunk) - { - n_chunks += 1; - n_alloc += chunk->limit - &chunk->contents[0]; - chunk = chunk->prev; - } - fprintf (stderr, "obstack %s: %u bytes, %d chunks\n", - str, n_alloc, n_chunks); -} - /* Print debugging information about tree nodes generated during the compile, and any language-specific information. */ |