diff options
author | Richard Guenther <rguenther@suse.de> | 2012-01-18 13:08:56 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-01-18 13:08:56 +0000 |
commit | b8cf611dad77c4a3b1dcff3e3658b8d5128a1357 (patch) | |
tree | 4c93320c90a077f2ef33c4a3b2becdaebb893997 /gcc | |
parent | 75327582d23d561f30d2e83302e4bb5881143df1 (diff) | |
download | gcc-b8cf611dad77c4a3b1dcff3e3658b8d5128a1357.zip gcc-b8cf611dad77c4a3b1dcff3e3658b8d5128a1357.tar.gz gcc-b8cf611dad77c4a3b1dcff3e3658b8d5128a1357.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6def41f..2162439 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index c28167e..fb2c005 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -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. */ |