bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from void *' warning from...
authorBen Elliston <bje@au.ibm.com>
Fri, 23 Jan 2009 22:48:23 +0000 (22:48 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Fri, 23 Jan 2009 22:48:23 +0000 (09:48 +1100)
* bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
void *' warning from -Wc++-compat.
* Makefile.in (dominance.o-warn): Remove.

From-SVN: r143593

gcc/ChangeLog
gcc/Makefile.in
gcc/bitmap.h

index 2697a7f..6e8a60f 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-24  Ben Elliston  <bje@au.ibm.com>
+
+       * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
+       void *' warning from -Wc++-compat.
+       * Makefile.in (dominance.o-warn): Remove.
+
 2008-01-23  Paolo Bonzini  <bonzini@gnu.org>
 
        PR tree-optimization/38932
index 5953668..8b214b9 100644 (file)
@@ -179,8 +179,6 @@ build/gengtype-lex.o-warn = -Wno-error
 SYSCALLS.c.X-warn = -Wno-strict-prototypes -Wno-error
 # dfp.c contains alias violations
 dfp.o-warn = -Wno-error
-# dominance.c contains a -Wc++compat warning.
-dominance.o-warn = -Wno-error
 # mips-tfile.c contains -Wcast-qual warnings.
 mips-tfile.o-warn = -Wno-error
 
index 7f17dc1..905eed3 100644 (file)
@@ -194,8 +194,8 @@ extern hashval_t bitmap_hash(const_bitmap);
 #define BITMAP_GGC_ALLOC() bitmap_gc_alloc ()
 
 /* Do any cleanup needed on a bitmap when it is no longer used.  */
-#define BITMAP_FREE(BITMAP)                    \
-       ((void)(bitmap_obstack_free (BITMAP), (BITMAP) = NULL))
+#define BITMAP_FREE(BITMAP) \
+       ((void) (bitmap_obstack_free ((bitmap) BITMAP), (BITMAP) = (bitmap) NULL))
 
 /* Iterator for bitmaps.  */