__asm__ and -fPIC problem
Marcus Meissner
Marcus.Meissner@caldera.de
Fri Apr 28 00:37:00 GMT 2000
Hi,
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.
It only happens with -fPIC, and vanishes with -O2.
$ gcc -v
gcc version 2.95.1 19990816 (release)
$ gcc -c xx.c
$ gcc -c xx.c -fPIC
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.
$ gcc -c xx.c -fPIC -O2
$
Webfrontend:
no options: no compile errors.
-fPIC:
/tmp/@19715.1: In function `DPMI_CallRMCBProc':
/tmp/@19715.1:36: Can't find a register in class `GENERAL_REGS' while reloading `asm'.
-fPIC -O2: no compile errors.
Ciao, Marcus
More information about the Gcc-bugs
mailing list