http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55467



Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED

   Last reconfirmed|                            |2012-11-26

         Resolution|INVALID                     |

     Ever Confirmed|0                           |1



--- Comment #5 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-11-26 
14:13:24 UTC ---

(In reply to comment #4)

> 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.



Your reply matches only for the attachment named pr55467-1.c.  I'd hope to see

the value being optimized out, but ok.



A bit too quick on closing, methinks: see the (first) attachment, named

gcc.dg/guality/pr55467-2.c, where x[0] is used at the return (after being

magically changed by the asm).  So, reopened.

Reply via email to