This left-over reportedly breaks casts between different pointer sizes.
Removed thus, it has become obsolete.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2012-01-18  Richard Guenther  <rguent...@suse.de>

        * tree-ssa.c (useless_type_conversion_p): Remove special-casing
        of conversions to void *.

Index: gcc/tree-ssa.c
===================================================================
--- gcc/tree-ssa.c      (revision 183270)
+++ gcc/tree-ssa.c      (working copy)
@@ -1199,10 +1199,6 @@ useless_type_conversion_p (tree outer_ty
       if (TYPE_ADDR_SPACE (TREE_TYPE (outer_type))
          != TYPE_ADDR_SPACE (TREE_TYPE (inner_type)))
        return false;
-
-      /* If the outer type is (void *), the conversion is not necessary.  */
-      if (VOID_TYPE_P (TREE_TYPE (outer_type)))
-       return true;
     }
 
   /* From now on qualifiers on value types do not matter.  */

Reply via email to