Patchwork Fix different-pointer-size issue

login
register
mail settings
Submitter Richard Guenther
Date Jan. 18, 2012, 1:07 p.m.
Message ID <alpine.LNX.2.00.1201181406420.4999@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/136611/
State New
Headers show

Comments

Richard Guenther - Jan. 18, 2012, 1:07 p.m.
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  <rguenther@suse.de>

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

Patch

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.  */