tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove special casing of constan...
authorRichard Guenther <rguenther@suse.de>
Thu, 20 Mar 2008 22:06:40 +0000 (22:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 20 Mar 2008 22:06:40 +0000 (22:06 +0000)
commit16ac8575504420eb56680d82edbd6c8879a67faf
treebd5e138f1c805a2f582aec0ad63aaaa70c10283c
parent44b6c5465840c7cd4737c0a0bc434c38dfa4eca4
tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove special casing of constant qualifiers.

2008-03-20  Richard Guenther  <rguenther@suse.de>

* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
special casing of constant qualifiers.
* tree-ssa.c (useless_type_conversion_p_1): Instead do not
care about them in general.
* tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
regardless of their type.
(fold_stmt_r): Forcefully fold *& if we end up with that.

* gcc.dg/tree-ssa/ssa-ccp-17.c: New testcase.

From-SVN: r133400
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-17.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa.c