OSDN Git Service

* tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2005 16:15:53 +0000 (16:15 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2005 16:15:53 +0000 (16:15 +0000)
commit0d759d9c1d5f7eb91c9557c6801e01915ed8ab66
tree508d1e36512ecd1b4e57698cc4a555112ed60e53
parent2e204c1208737e96130449b8c480021282d61f77
* tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
to a structure containing state rather than a pointer to bool.
(case ARRAY_REF): New code to handle folding some array references.
(case ADDR_EXPR): Note when we are processing expressions found
within an ADDRE_EXPR.
(fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
for state variables rather than just a pointer to a boolean.
* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
handling of constant string references.

* gcc.dg/tree-ssa/foldstring-1.c: New test.

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