------- Comment #5 from jakub at gcc dot gnu dot org 2010-08-17 10:16 ------- For inline-asm? Certainly not. Consider much simpler: void foo (void) { int i; i = 6; asm volatile ("" : : "i" (i)); } which will work with -O and above, but not for -O0, for exactly the same reason.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45303