diff options
author | Richard Guenther <rguenther@suse.de> | 2010-02-05 15:28:31 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-02-05 15:28:31 +0000 |
commit | 5c95f07b6154507f16f349d69f0aef23266c81ac (patch) | |
tree | 229795994b4de581bb95aae0ad647146d6c5a116 /gcc/cp/cp-lang.c | |
parent | 64aa00b1710aaf321a6487e1bb4e8a2e25b4aae9 (diff) | |
download | gcc-5c95f07b6154507f16f349d69f0aef23266c81ac.zip gcc-5c95f07b6154507f16f349d69f0aef23266c81ac.tar.gz gcc-5c95f07b6154507f16f349d69f0aef23266c81ac.tar.bz2 |
tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
2010-02-05 Richard Guenther <rguenther@suse.de>
* tree-ssa-ccp.c (get_symbol_constant_value): Strip all
conversions.
(fold_const_aggregate_ref): Likewise.
(ccp_fold_stmt): Substitute loads.
(maybe_fold_reference): Verify types before substituting.
Unshare properly.
(fold_gimple_assign): Unshare properly.
(fold_stmt_1): Insert conversion if necessary before replacing
the RHS.
* gcc.dg/tree-ssa/ssa-ccp-28.c: New testcase.
From-SVN: r156519
Diffstat (limited to 'gcc/cp/cp-lang.c')
0 files changed, 0 insertions, 0 deletions