This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]