This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/63375] reordering of reads across fences
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Sep 2014 00:35:13 +0000
- Subject: [Bug tree-optimization/63375] reordering of reads across fences
- Auto-submitted: auto-generated
- References: <bug-63375-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63375
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-09-26
Component|rtl-optimization |tree-optimization
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>A read within the region of code enclosed by barriers is being moved out of the regions.
Actually no. What is happening is a volatile read is being changed into a non
volatile one. This is happening during early SRA.
Also this does not happen if val was a global variable rather than a stack
variable.