This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/72795] Missed optimization of external-linkage variables in presence of barriers
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Aug 2016 11:07:20 +0000
- Subject: [Bug middle-end/72795] Missed optimization of external-linkage variables in presence of barriers
- Auto-submitted: auto-generated
- References: <bug-72795-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72795
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
"memory" only includes memory that can be indirectly accessed (thus may be
address-taken in this or another CU). You have to add other vars explicitely.
Note that we asume that asm volatile might read 'x' through such a pointer.