egcs bug(?) in FD_ZERO

Ocker Kerpershoek ocker@linuxstart.com
Fri Jun 4 07:34:00 GMT 1999


When compiling a program that uses FD_ZERO, i get the following
error message from egcs :
main.c:7: Invalid `asm' statement:
main.c:7: fixed or forbidden register 2 (cx) was spilled for class CREG.
The "program" i used to demonstrate this is :
// ---start---
#include <sys/types.h>
#include <unistd.h>
int main(char* argv[],int argc) {
fd_set f;
FD_ZERO( &f );
}
// ---end---
I guess this should compile fine...
system info :
egcs : 2.95 19990602
OS   : linux 2.2.7 (rh5.1) glibc 2.0.7


------
Do you do Linux? :)
Get your FREE @linuxstart.com email address at: http://www.linuxstart.com


More information about the Gcc-bugs mailing list