http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50078
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-09 11:32:40 UTC --- Author: jakub Date: Fri Dec 9 11:32:35 2011 New Revision: 182157 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182157 Log: Backport from mainline 2011-12-08 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/51466 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy TREE_SIDE_EFFECTS. * gcc.c-torture/execute/pr51466.c: New test. 2011-11-28 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr51466.c branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr50078.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/tree-ssa-forwprop.c