]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer to a structure containin...
authorJeff Law <law@redhat.com>
Wed, 14 Dec 2005 16:15:53 +0000 (09:15 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 14 Dec 2005 16:15:53 +0000 (09:15 -0700)
commit622f91baa80861cf721cc364652b7ce47707a6e7
tree508d1e36512ecd1b4e57698cc4a555112ed60e53
parent08a5aaa2e3b0384f72b118ec42d6fb64d22ca891
tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer to a structure containing state rather than a...

* 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.

From-SVN: r108519
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