From e645c1a1a74dfa304355932c7990855ddbb5b4d5 Mon Sep 17 00:00:00 2001 From: steven Date: Sun, 6 Apr 2003 21:44:09 +0000 Subject: 2003-04-06 Steven Bosscher * 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 --- gcc/bitmap.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'gcc/bitmap.c') diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 4575f62a531..f631543963c 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -125,29 +125,17 @@ bitmap_element_allocate (head) if (!bitmap_obstack_init) { bitmap_obstack_init = TRUE; - - /* 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 - + #if !defined(__GNUC__) || (__GNUC__ < 2) #define __alignof__(type) 0 #endif - + obstack_specify_allocation (&bitmap_obstack, OBSTACK_CHUNK_SIZE, __alignof__ (bitmap_element), - (void *(*) PARAMS ((long))) OBSTACK_CHUNK_ALLOC, - (void (*) PARAMS ((void *))) OBSTACK_CHUNK_FREE); + obstack_chunk_alloc, + obstack_chunk_free); } - + element = (bitmap_element *) obstack_alloc (&bitmap_obstack, sizeof (bitmap_element)); } -- cgit v1.2.1