diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-11-25 21:18:55 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-11-25 21:18:55 +0000 |
commit | 9f8e747867f0b4824c02c7745491b8ef2110b814 (patch) | |
tree | c397daea9bbf7bc76c15c811734f6b7d0e25582c /gcc/bitmap.h | |
parent | e288e2f51bed5d45a8a89479bc2f98337bc18c80 (diff) | |
download | gcc-9f8e747867f0b4824c02c7745491b8ef2110b814.zip gcc-9f8e747867f0b4824c02c7745491b8ef2110b814.tar.gz gcc-9f8e747867f0b4824c02c7745491b8ef2110b814.tar.bz2 |
bitmap.c (bitmap_malloc_alloc, [...]): Remove.
* 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.
From-SVN: r91306
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index fb599cb..a5531d9 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. */ |