------- Comment #33 from stsp at users dot sourceforge dot net 2007-11-22 17:27 ------- > For -O0 expecting > int i = 1; > asm ("" :: "i" (i)); > to work is certainly bad assumption Btw, even the static const int i = 1; asm ("" :: "i" (i)); doesn't work with both -O0 and -O1. :(
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23200