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.