From owner-freebsd-current Sun Dec 26 9:14:54 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 87F5F14F7A for ; Sun, 26 Dec 1999 09:14:51 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: (qmail 24896 invoked from network); 26 Dec 1999 17:14:49 -0000 Received: from lca111.cvzoom.net (HELO cvzoom.net) (63.65.158.111) by ns.cvzoom.net with SMTP; 26 Dec 1999 17:14:48 -0000 Message-ID: <38664CC6.34DD3329@cvzoom.net> Date: Sun, 26 Dec 1999 12:13:42 -0500 From: Donn Miller X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Amancio Hasty Cc: current@FreeBSD.ORG Subject: Re: gcc compile error References: <199912260717.XAA73116@rah.star-gate.com> Content-Type: multipart/mixed; boundary="------------816DC2C1C7498C7B8D7B6F27" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------816DC2C1C7498C7B8D7B6F27 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Amancio Hasty wrote: > > While trying to compile the latest version of XFree86 I found the following > compiler bug. > > {root} gcc -v > Using builtin specs. > gcc version 2.95.2 19991024 (release) > > I assume that this an old version of gcc... Actually, that's one of the newest versions of gcc. -snip- > xf86vmode.c: In function `ProcXF86VidModeGetMonitor': > xf86vmode.c:1320: Unable to generate reloads for: > (insn 300 298 302 (parallel[ > (set (reg:SI 0 %eax) > (fix:SI (fix:SF (subreg:SF (reg:SI 0 %eax) 0)))) > (clobber (mem:HI (plus:SI (reg:SI 6 %ebp) > (const_int -34 [0xffffffde])) 0)) > (clobber (mem:HI (plus:SI (reg:SI 6 %ebp) > (const_int -36 [0xffffffdc])) 0)) > (clobber (mem:SI (plus:SI (reg:SI 6 %ebp) > (const_int -40 [0xffffffd8])) 0)) > (clobber (scratch:HI)) > ] ) 145 {fix_truncsfsi2+1} (insn_list 293 (nil)) > (expr_list:REG_DEAD (reg:SI 0 %eax) > (expr_list:REG_UNUSED (scratch:HI) > (nil)))) > *** Error code 1 I get similar errors trying to compile aview from ports. I just updated my ports tree, so that can't be the problem. See the attached make.log. There's something about not allowing access to the cx register. - Donn --------------816DC2C1C7498C7B8D7B6F27 Content-Type: text/plain; charset=us-ascii; name="make.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="make.log" ===> Building for aview-1.2 cc -O -pipe -I/usr/X11R6/include -I/usr/local/include -c flip.c flip.c: In function `dcd_delta_flc': sstring.h:493: Invalid `asm' statement: sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG. flip.c: In function `dcd_delta_fli': sstring.h:493: Invalid `asm' statement: sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG. flip.c: In function `dcd_byte_run': sstring.h:493: Invalid `asm' statement: sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG. flip.c: In function `dcd_black': sstring.h:669: Invalid `asm' statement: sstring.h:669: fixed or forbidden register 2 (cx) was spilled for class CREG. flip.c: In function `dcd_literal': sstring.h:493: Invalid `asm' statement: sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG. *** Error code 1 Stop in /usr/ports/graphics/aview/work/aview-1.2. *** Error code 1 Stop in /usr/ports/graphics/aview. *** Error code 1 Stop in /usr/ports/graphics/aview. *** Error code 1 Stop in /usr/ports/graphics/aview. --------------816DC2C1C7498C7B8D7B6F27-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message