This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r156519 - in /trunk/gcc: ChangeLog testsuite/Ch...
- From: rguenth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 05 Feb 2010 15:28:32 -0000
- Subject: r156519 - in /trunk/gcc: ChangeLog testsuite/Ch...
Author: rguenth
Date: Fri Feb 5 15:28:31 2010
New Revision: 156519
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156519
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-28.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c