diff options
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 9b8875a..99f4549 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -119,13 +119,24 @@ extern void debug_bitmap PROTO((bitmap)); bitmap_initialize ((bitmap) xmalloc (sizeof (bitmap_head))) /* Do any cleanup needed on a bitmap when it is no longer used. */ -#define BITMAP_FREE(BITMAP) \ -do { \ - if (BITMAP) \ - { \ - bitmap_clear (BITMAP); \ - (BITMAP) = 0; \ - } \ +#define BITMAP_FREE(BITMAP) \ +do { \ + if (BITMAP) \ + { \ + bitmap_clear (BITMAP); \ + (BITMAP) = 0; \ + } \ +} while (0) + +/* Do any cleanup needed on an xmalloced bitmap when it is no longer used. */ +#define BITMAP_XFREE(BITMAP) \ +do { \ + if (BITMAP) \ + { \ + bitmap_clear (BITMAP); \ + free (BITMAP); \ + (BITMAP) = 0; \ + } \ } while (0) /* Do any one-time initializations needed for bitmaps. */ |