__asm__ and -fPIC problem
Marcus Meissner
Marcus.Meissner@caldera.de
Fri Apr 28 01:58:00 GMT 2000
On Fri, Apr 28, 2000 at 09:53:53AM +0100, Bernd Schmidt wrote:
> > xx.c: In function `DPMI_CallRMCBProc':
> > xx.c:36: Invalid `asm' statement:
> > xx.c:36: fixed or forbidden register 1 (dx) was spilled for class GENERAL_REGS.
>
> I haven't debugged it, but probably the compiler simply needs more registers
> than it can find. Remember that for a "m" constraint, you need up to
> two registers for the address.
> Maybe you could write the whole function in assembler rather than in C - there
> are no C bits anyway.
Well, I was more concerned that there is a gcc bug ;)
The routine itself is not that important in itself, will see if I find the
time to fix it.
Ciao, Marcus
More information about the Gcc-bugs
mailing list