diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-11-25 10:31:38 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-11-25 10:31:38 +0000 |
commit | cc175e7c89539b0b55ef73c0ba9c7a6e062cc0d4 (patch) | |
tree | 60167593bb07447210914ff3d3ea5ed5f3a01a6a /gcc/bitmap.h | |
parent | d0397fd9704cffd78f00ba2f74add6a46a4c3044 (diff) | |
download | gcc-cc175e7c89539b0b55ef73c0ba9c7a6e062cc0d4.zip gcc-cc175e7c89539b0b55ef73c0ba9c7a6e062cc0d4.tar.gz gcc-cc175e7c89539b0b55ef73c0ba9c7a6e062cc0d4.tar.bz2 |
basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
* basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
(FREE_REG_SET): Adjust.
* bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
* bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
(BITMAP_ALLOC): ... here.
(BITMAP_OBSTACK_FREE): Rename to ...
(BITMAP_FREE): Don't check for NULL bitmap here.
* tree-ssa-pre.c (value_insert_into_set_bitmap,
bitmap_set_new): Use new names.
From-SVN: r91281
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index d6e316a..fb599cb 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -156,7 +156,7 @@ extern void bitmap_malloc_free (bitmap); extern unsigned bitmap_first_set_bit (bitmap); /* Allocate a bitmap from a bit obstack. */ -#define BITMAP_OBSTACK_ALLOC(OBSTACK) bitmap_obstack_alloc (OBSTACK) +#define BITMAP_ALLOC(OBSTACK) bitmap_obstack_alloc (OBSTACK) /* Allocate a gc'd bitmap. */ #define BITMAP_GGC_ALLOC() bitmap_gc_alloc () @@ -165,14 +165,8 @@ extern unsigned bitmap_first_set_bit (bitmap); #define BITMAP_XMALLOC() bitmap_malloc_alloc () /* Do any cleanup needed on a bitmap when it is no longer used. */ -#define BITMAP_OBSTACK_FREE(BITMAP) \ -do { \ - if (BITMAP) \ - { \ - bitmap_obstack_free (BITMAP); \ - (BITMAP) = 0; \ - } \ -} while (0) +#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) \ |