http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55467
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution| |INVALID --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-26 13:36:26 UTC --- That is not a bug. Without volatile and nothing using the result of the asm, both the second inline asm and x[0] = 25 store are optimized away (by RTL DSE1), there is not even anything on the line 14 anymore. As it is optimized away quite late, the variable x is not optimized away, it exists, just is completely uninitialized. What you see in the debugger than is exactly what you would see before the x[0] = 25; store then.