OSDN Git Service

2012-01-18 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2012 13:08:56 +0000 (13:08 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2012 13:08:56 +0000 (13:08 +0000)
* tree-ssa.c (useless_type_conversion_p): Remove special-casing
of conversions to void *.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183271 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa.c

index 6def41f..2162439 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-18  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa.c (useless_type_conversion_p): Remove special-casing
+       of conversions to void *.
+
 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
            Richard Sandiford  <rdsandiford@googlemail.com>
 
index c28167e..fb2c005 100644 (file)
@@ -1199,10 +1199,6 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
       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.  */