This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50078] [4.6/4.7 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: Mon, 28 Nov 2011 09:12:39 +0000
- Subject: [Bug tree-optimization/50078] [4.6/4.7 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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|matz at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-28 09:12:39 UTC ---
Created attachment 25929
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25929
gcc47-pr50078.patch
IMHO it is a forwprop bug, which changes a MEM_REF in this case into an
ARRAY_REF (with MEM_REF operand), but copies TREE_THIS_VOLATILE from the
original MEM_REF not to the ARRAY_REF, but to the inner MEM_REF.