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 rtl-optimization/44288] [Extended inline asm] wrong assembly generation on IA32



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


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