[Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented

fjahanian at apple dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 7 20:37:00 GMT 2004


------- Additional Comments From fjahanian at apple dot com  2004-10-07 20:37 -------
From: http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Extended-Asm.html#Extended%20Asm

The volatile keyword indicates that the instruction has important side-effects. GCC will not delete a 
volatile asm if it is reachable. (The instruction can still be deleted if GCC can prove that control-flow 
will never reach the location of the instruction.) In addition, GCC will not reschedule instructions across 
a volatile asm instruction. 

-- 


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



More information about the Gcc-bugs mailing list