[Bug inline-asm/34830] rejects "i"(const_var) without -O1

stsp at users dot sourceforge dot net gcc-bugzilla@gcc.gnu.org
Sat Jan 19 10:48:00 GMT 2008



------- Comment #3 from stsp at users dot sourceforge dot net  2008-01-19 08:35 -------
Yes, but the point was that the same
code should not compile/reject depending
only on an optimizer options.
If this code is invalid, then with -O2 it
should give the error as well, or at least
a warning.
The optimizer can not silently turn the wrong
code into the right code and vice versa.
Also, g++ compiles it even without an optimization.


-- 


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



More information about the Gcc-bugs mailing list