re PR tree-optimization/50078 (combine wrong code: volatile accesses optimized out)
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Nov 2011 21:03:11 +0000 (22:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Nov 2011 21:03:11 +0000 (22:03 +0100)
commit8c29866f7fab248c5f3bfba80399c2f462236f2a
tree32e3db64b2d2968a496e87e98982ff6eb23b7915
parent99d8763e19ee7949d3afee72f07612ebb3bf37f8
re PR tree-optimization/50078 (combine wrong code: volatile accesses optimized out)

PR tree-optimization/50078
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.

* gcc.dg/pr50078.c: New test.

From-SVN: r181786
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr50078.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c