summaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-06 21:44:09 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-06 21:44:09 +0000
commite645c1a1a74dfa304355932c7990855ddbb5b4d5 (patch)
tree7049cd5a93a5c7b5d3d7721a23bd9ce4c33110ec /gcc/bitmap.c
parent518010a58472c866afa9bb993ec4794f446a58a6 (diff)
downloadgcc-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/bitmap.c')
-rw-r--r--gcc/bitmap.c22
1 files changed, 5 insertions, 17 deletions
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));
}