This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-in-cxx] Revert BITMAP_FREE patch
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Jun 2009 23:17:20 -0700
- Subject: [gcc-in-cxx] Revert BITMAP_FREE patch
Now that this patch is in:
2009-01-24 Ben Elliston <bje@au.ibm.com>
* bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
void *' warning from -Wc++-compat.
it is no longer necessary for dominance.c to avoid calling
BITMAP_FREE. I committed this patch to the gcc-in-cxx branch to
remove an unnecessary difference from trunk.
Ian
2009-06-19 Ian Lance Taylor <iant@google.com>
Revert this patch:
2008-10-05 Tom Tromey <tromey@redhat.com>
* dominance.c (iterate_fix_dominators): Cast argument to
BITMAP_FREE.
Index: dominance.c
===================================================================
--- dominance.c (revision 148738)
+++ dominance.c (working copy)
@@ -1348,12 +1348,7 @@ iterate_fix_dominators (enum cdi_directi
}
}
for (y = 0; y < g->n_vertices; y++)
- {
- /* Strange contortions for C++ compilation. */
- bitmap b = (bitmap) g->vertices[y].data;
- BITMAP_FREE (b);
- g->vertices[y].data = NULL;
- }
+ BITMAP_FREE (g->vertices[y].data);
pointer_map_destroy (map);
/* Find the dominator tree of G. */