This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] FYI: fix 2 bitmap-related c++ errors
Richard> Certainly you only need one cast, not two. Likewise below.
Oops, what was I thinking?
I'm committing the appended.
Tom
ChangeLog:
2008-10-05 Tom Tromey <tromey@redhat.com>
* bitmap.c (bitmap_obstack_alloc_stat): Remove extra cast.
(bitmap_obstack_free): Likewise.
Index: bitmap.c
===================================================================
--- bitmap.c (revision 140890)
+++ bitmap.c (working copy)
@@ -356,7 +356,7 @@
bit_obstack = &bitmap_default_obstack;
map = bit_obstack->heads;
if (map)
- bit_obstack->heads = (bitmap_head_def *) (void *) map->first;
+ bit_obstack->heads = (bitmap_head_def *) map->first;
else
map = XOBNEW (&bit_obstack->obstack, bitmap_head);
bitmap_initialize_stat (map, bit_obstack PASS_MEM_STAT);
@@ -391,7 +391,7 @@
if (map)
{
bitmap_clear (map);
- map->first = (bitmap_element *) (void *) map->obstack->heads;
+ map->first = (bitmap_element *) map->obstack->heads;
#ifdef GATHER_STATISTICS
register_overhead (map, -((int)sizeof (bitmap_head)));
#endif