[Bug inline-asm/23200] [4.0/4.1/4.2/4.3 regression] rejects "i"(&var + 1)

stsp at users dot sourceforge dot net gcc-bugzilla@gcc.gnu.org
Thu Nov 22 17:27:00 GMT 2007



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



More information about the Gcc-bugs mailing list