This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50078] [4.6 Regression] combine wrong code: volatile accesses optimized out
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2011 11:32:40 +0000
- Subject: [Bug tree-optimization/50078] [4.6 Regression] combine wrong code: volatile accesses optimized out
- Auto-submitted: auto-generated
- References: <bug-50078-4@http.gcc.gnu.org/bugzilla/>
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 <jakub@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 <jakub@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