__asm__ and -fPIC problem
Etienne Lorrain
etienne_lorrain@yahoo.fr
Fri Apr 28 01:29:00 GMT 2000
Marcus Meissner wrote:
> Compiling WINE with gcc-2.95.1 and gcc-latest (via webfrontend) has some
> strange __asm__ complaints. I am not sure whether this is a bug on our
> (WINE)side, or a gcc bug. I've attached the small testcase I could
extract.
I cannot help you with -fPIC, but there is something strange
in your testcase:
__asm__ __volatile__(
"pushl %%es\n"
"pushl %%ds\n"
"pushfl\n"
"movl %5,%%es\n"
"movl %4,%%ds\n"
After pushing registers on the stack, you can no more
use %5 and %6 because they may be variables in stack - so
will be encoded like "10(%esp)" - with the _old_ value of %esp !
That is why it would be interresting to be able to clobber
%ds, %es, %fs, %gs, %ebp, but that is another story...
Hope that helps,
Etienne.
___________________________________________________________
Do You Yahoo!?
Achetez, vendez! ÃÂ votre prix! Sur http://encheres.yahoo.fr
More information about the Gcc-bugs
mailing list