diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 21:18:55 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 21:18:55 +0000 |
commit | b6849408a352a14a35dd90750dfd4414fa04cd1d (patch) | |
tree | c397daea9bbf7bc76c15c811734f6b7d0e25582c /gcc/bitmap.h | |
parent | 39b644e9c5f0bff23408b78a2af980d6b49a05ea (diff) | |
download | gcc-b6849408a352a14a35dd90750dfd4414fa04cd1d.tar.gz |
* 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91306 138bc75d-0d04-0410-961f-82ee72b054a4
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 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. */ |