From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Ian Lance Taylor Cc: oeysteij@online.no, binutils@sourceware.cygnus.com Subject: Re: Assembler problem(?) when compiling SysVinit. Date: Sun, 29 Aug 1999 15:13:00 -0000 Message-id: <9232.935963497@upchuck.cygnus.com> References: <19990829210912.4377.qmail@daffy.airs.com> X-SW-Source: 1999-08/msg00183.html In message < 19990829210912.4377.qmail@daffy.airs.com >you write: > Date: Fri, 27 Aug 1999 21:44:34 +0200 > From: =?iso-8859-1?Q?=D8ystein?= Johansen > > (I'm not sure if this is the right mailinglist to ask this question, > but I don't know any other place to ask. As a matter of fact, I'm not > even sure the assembler is the problem..) > > The assembler is not the problem. > > gcc -c -Wall -O2 -D_GNU_SOURCE init.c > init.c: In function `console_open': > init.c:478: warning: `fd' might be used uninitialized in this function > init.c: In function `check_pipe': > init.c:1757: Invalid `asm' statement: > init.c:1757: fixed or forbidden register 2 (cx) was spilled for class > CREG. > init.c: In function `check_init_fifo': > init.c:1964: Invalid `asm' statement: > init.c:1964: fixed or forbidden register 2 (cx) was spilled for class > CREG. > make: *** [init.o] Error 1 > > At this lines (1757 and 1964) the program calls a macro called FD_SET. > > Is this a bug in the assembler or gcc-2.95? A error in my setup? > An error in SysVinit? > > The bug is either in gcc or (more likely) in the inline assembler code > in question. The bug is not in the assembler; the assembler is not > even being run. It's a bogus asm statement. This is covered in the gcc/egcs FAQ. jeff