aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-11-25 21:18:55 +0000
committerNathan Sidwell <nathan@codesourcery.com>2004-11-25 21:18:55 +0000
commitb54c7ea3a5f011ca3d3f65306025ba83e405a526 (patch)
treec397daea9bbf7bc76c15c811734f6b7d0e25582c /gcc/bitmap.h
parentda37caeca04e17ec908793548e742485bfa5bb88 (diff)
* bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
* bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove. (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC. (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@91306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index fb599cb2759..a5531d9b186 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -145,10 +145,8 @@ bitmap_initialize (bitmap head, bitmap_obstack *obstack)
/* Allocate and free bitmaps from obstack, malloc and gc'd memory. */
extern bitmap bitmap_obstack_alloc (bitmap_obstack *obstack);
-extern bitmap bitmap_malloc_alloc (void);
extern bitmap bitmap_gc_alloc (void);
extern void bitmap_obstack_free (bitmap);
-extern void bitmap_malloc_free (bitmap);
/* A few compatibility/functions macros for compatibility with sbitmaps */
#define dump_bitmap(file, bitmap) bitmap_print (file, bitmap, "", "\n")
@@ -162,21 +160,14 @@ extern unsigned bitmap_first_set_bit (bitmap);
#define BITMAP_GGC_ALLOC() bitmap_gc_alloc ()
/* Allocate a bitmap with xmalloc. */
-#define BITMAP_XMALLOC() bitmap_malloc_alloc ()
+#define BITMAP_XMALLOC() BITMAP_OBSTACK_ALLOC (NULL)
/* Do any cleanup needed on a bitmap when it is no longer used. */
#define BITMAP_FREE(BITMAP) \
((void)(bitmap_obstack_free (BITMAP), (BITMAP) = NULL))
/* Do any cleanup needed on an xmalloced bitmap when it is no longer used. */
-#define BITMAP_XFREE(BITMAP) \
-do { \
- if (BITMAP) \
- { \
- bitmap_malloc_free (BITMAP); \
- (BITMAP) = 0; \
- } \
-} while (0)
+#define BITMAP_XFREE(BITMAP) BITMAP_OBSTACK_FREE (BITMAP)
/* Iterator for bitmaps. */