This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/29808] [4.2 Regression] Error: suffix or operands invalid for `mov' when optimization is enabled
- From: "segher at kernel dot crashing dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2006 14:01:28 -0000
- Subject: [Bug inline-asm/29808] [4.2 Regression] Error: suffix or operands invalid for `mov' when optimization is enabled
- References: <bug-29808-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from segher at kernel dot crashing dot org 2006-11-12 14:01 -------
> If the code is invalid, the fact that it compiles with -O0 is probably a bug...
No, GCC cannot in general detect whether your asm code is buggy.
The assembler however can detect many asm bugs, as it did in this
case.
The reason it worked with -O0 is that with -O0 you get different
generated code (namely, very inefficient code).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29808