This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/44288] [Extended inline asm] wrong assembly generation on IA32
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2010 10:11:10 -0000
- Subject: [Bug rtl-optimization/44288] [Extended inline asm] wrong assembly generation on IA32
- References: <bug-44288-19237@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2010-05-27 10:11 -------
All the tests demonstrate is that you have buggy constraint, in particular
you shouldn't use "g" constraint on something you use in gs:[%2].
"g" is any register (fine in that case), immediate (not fine) or memory (not
fine either in this case).
mov al, gs:[DWORD PTR [ebp+12]]
is what you get when this->offset is memory at ebp+12, and that of course
doesn't assemble. Just use "r".
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44288