diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-06 21:44:09 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-06 21:44:09 +0000 |
commit | e645c1a1a74dfa304355932c7990855ddbb5b4d5 (patch) | |
tree | 7049cd5a93a5c7b5d3d7721a23bd9ce4c33110ec /gcc/hashtable.c | |
parent | 518010a58472c866afa9bb993ec4794f446a58a6 (diff) | |
download | gcc-e645c1a1a74dfa304355932c7990855ddbb5b4d5.tar.gz |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65308 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hashtable.c')
-rw-r--r-- | gcc/hashtable.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/hashtable.c b/gcc/hashtable.c index ae7e5899b9a..63df6ff96a0 100644 --- a/gcc/hashtable.c +++ b/gcc/hashtable.c @@ -35,28 +35,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static unsigned int calc_hash PARAMS ((const unsigned char *, unsigned int)); static void ht_expand PARAMS ((hash_table *)); -/* Let particular systems override the size of a chunk. */ -#ifndef OBSTACK_CHUNK_SIZE -#define OBSTACK_CHUNK_SIZE 0 -#endif - /* Let them override the alloc and free routines too. */ -#ifndef OBSTACK_CHUNK_ALLOC -#define OBSTACK_CHUNK_ALLOC xmalloc -#endif -#ifndef OBSTACK_CHUNK_FREE -#define OBSTACK_CHUNK_FREE free -#endif - -/* Initialize an obstack. */ -void -gcc_obstack_init (obstack) - struct obstack *obstack; -{ - _obstack_begin (obstack, OBSTACK_CHUNK_SIZE, 0, - (void *(*) PARAMS ((long))) OBSTACK_CHUNK_ALLOC, - (void (*) PARAMS ((void *))) OBSTACK_CHUNK_FREE); -} - /* Calculate the hash of the string STR of length LEN. */ static unsigned int |