]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-ccp.c
2006-05-16 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 May 2006 15:34:12 +0000 (15:34 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 May 2006 15:34:12 +0000 (15:34 +0000)
commit4f61cce60addb40b11633ed0a1d222e1dd5299a6
treeedbdd4f49cf5e328f497b63f183f1354221dafa4
parenta1baa5f1549a32cb8d6a639977b8cb6d0b90afae
2006-05-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/22303
* tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
from STRING_CSTs.
(evaluate_stmt): Fall back to fold_const_aggregate_ref, if
ccp_fold did not simplify the statement.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113826 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-13.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c