From owner-freebsd-current Fri Nov 5 21: 7:23 1999 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id DAAD214BF8; Fri, 5 Nov 1999 21:07:19 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from p89-ts5.syd2.zeta.org.au (beefcake.zeta.org.au [203.26.10.12]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id QAA17470; Sat, 6 Nov 1999 16:12:36 +1100 Date: Sat, 6 Nov 1999 16:07:06 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: "David O'Brien" Cc: current@FreeBSD.ORG Subject: Re: show stopper for Gcc 2.95.2 conversion In-Reply-To: <19991105140415.A25486@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 5 Nov 1999, David O'Brien wrote: > The current show stopper for switching over to GCC 2.95.2 is a problem > compiling the `ahc' driver: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. > -I../../../include -DKERNEL -include opt_global.h -elf > ../../dev/aic7xxx/aic7xxx.c > ../../dev/aic7xxx/aic7xxx.c: In function `ahc_download_instr': > machine/bus.h:584: Invalid `asm' statement: > machine/bus.h:584: fixed or forbidden register 2 (cx) was spilled for class CREG. > *** Error code 1 The asm statement is broken. The clobber list shouldn't include any registers that are explicitly allocated as operands. See rev.1.85 of where this bug was fixed for several functions that used to have it there. Many functions in have the same bug. > The message is misleading, as the problematic header is > /sys/i386/include/bus.h not, /usr/include/machine/bus.h. It's actually machine/bus.h, where "machine" is the symlink to ../../i386/include in the compile directory. This is correct. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message