[Bug tree-optimization/19341] [4.0 Regression] DCE eliminating non-dead code

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 9 01:38:00 GMT 2005

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-09 01:37 -------
This code is invalid, for one you should not do a call in inline-asm.
Second the store to k is dead as the inline-asm is not told that k is accessed.

asm volatile ("call g" :: "a" (&k), "m" (k)); will fix the DCE issue but the code is still invalid because 
control flow 

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


More information about the Gcc-bugs mailing list