Date: Sun, 26 Dec 1999 12:13:42 -0500 From: Donn Miller <dmmiller@cvzoom.net> To: Amancio Hasty <hasty@rah.star-gate.com> Cc: current@FreeBSD.ORG Subject: Re: gcc compile error Message-ID: <38664CC6.34DD3329@cvzoom.net> References: <199912260717.XAA73116@rah.star-gate.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38664CC6.34DD3329>
