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
===>  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.

Reply via email to