]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-ccp.c
re PR tree-optimization/35468 (LHS of assignment can be folded to a constant causing...
authorJakub Jelinek <jakub@redhat.com>
Tue, 9 Dec 2008 16:55:35 +0000 (17:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 9 Dec 2008 16:55:35 +0000 (17:55 +0100)
commitbab4e8fbed8e7d10eb9c99635d513b3ee4197db0
treee1fc6db592f653e87c5ae59795210387846d1c3f
parentb3b30b2401e192a42d4a75728dd198223573dd81
re PR tree-optimization/35468 (LHS of assignment can be folded to a constant causing ICE)

PR tree-optimization/35468
* tree-ssa-ccp.c (fold_stmt_r): Don't fold reads from constant
string on LHS.

* gcc.dg/pr35468.c: New test.
* gcc.c-torture/compile/pr35468.c: New test.

From-SVN: r142598
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr35468.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr35468.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c