re PR c++/34459 (incorrect code when compiled with optimization (-O1))
commit3ec1a7379f92411a4a311aaa347dfb14d2e23815
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Dec 2007 14:40:33 +0000 (20 15:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Dec 2007 14:40:33 +0000 (20 15:40 +0100)
tree5990689e70d0a0e74d6934d8c11527dd589c94c9
parent667e20459d82a01e61fc590781c53fd2c136ef96
re PR c++/34459 (incorrect code when compiled with optimization (-O1))

PR c++/34459
* tree-ssa-dse.c (dse_optimize_stmt): Don't eliminate store if
USE_STMT not only stores into the same object as STMT, but might
read it too.

* gcc.c-torture/execute/20071219-1.c: New test.

From-SVN: r131101
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20071219-1.c [new file with mode: 0644]
gcc/tree-ssa-dse.c