mirror of git://gcc.gnu.org/git/gcc.git
tree-ssa.c (useless_type_conversion_p): Remove special-casing of conversions to void *.
2012-01-18 Richard Guenther <rguenther@suse.de> * tree-ssa.c (useless_type_conversion_p): Remove special-casing of conversions to void *. From-SVN: r183271
This commit is contained in:
parent
75327582d2
commit
b8cf611dad
|
|
@ -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>
|
2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||||
Richard Sandiford <rdsandiford@googlemail.com>
|
Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1199,10 +1199,6 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
|
||||||
if (TYPE_ADDR_SPACE (TREE_TYPE (outer_type))
|
if (TYPE_ADDR_SPACE (TREE_TYPE (outer_type))
|
||||||
!= TYPE_ADDR_SPACE (TREE_TYPE (inner_type)))
|
!= TYPE_ADDR_SPACE (TREE_TYPE (inner_type)))
|
||||||
return false;
|
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. */
|
/* From now on qualifiers on value types do not matter. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue