On Wed, Sep 18, 2002 at 09:59:29PM +0300, Vallo Kallaste <vallo> wrote:

> In case someone is interested about consistent test case, here's
> additional info. Now I built both world and kernel with CPUTYPE=p2
> and kan's patch. I haven't changed anything except uncommenting the
> aforementioned CPUTYPE clause in make.conf. The package build run
> ends up with same failure on the same place as before. I'm going to
> update the system sources because of recent gcc import.. in hopes
> it'll fix the bug.

The failure below is triggered consistently by setting CPUTYPE to
any of p[234] in /etc/make.conf. /usr/share/mk/bsd.cpu.mk defines
_CPUCFLAGS = -mcpu=pentiumpro and CPUTYPE = i386 in case
MACHINE_ARCH=i386 and CPUTYPE is unset. Setting CPUTYPE=p[234] will
cause precise setting of -march as seen below, in this case
-march=pentium2 and this is the bugger. CPUTYPE=i686 in make.conf
will cause -march=pentiumpro and this works. It's probably worth to
mention in some kind of document that precise setting of CPUTYPE to
p[234] can cause all sorts of weirdness and the more broad
definition CPUTYPE=i686 is more likely to work.

> rm -f miPck1Prim.o
> cc -O -pipe -march=pentium2 -march=pentium2  -ansi -pedantic -Dasm=__asm -Wall 
>-Wpointer-arith   -fno-merge-constants -I.         -I../include    
>   -I../../../include      
>  -I/usr/local/src/portbuild/usr/ports/x11-servers/XFree86-4-Server/work/xc 
>-DIN_MODULE -DXFree86Module    -c miPck1Prim.c
> miPck1Prim.c: In function `CheckFAreaPick1':
> miPck1Prim.c:337: unable to find a register to spill in class `FLOAT_REGS'
> miPck1Prim.c:337: this is the insn:
> (insn 275 273 277 (set (subreg:SF (reg/v:DI 29 rmm0 [64]) 0)
>         (float:SF (mem/s/j:HI (reg/v/f:SI 2 ecx [61]) [0 <variable>.x+0 S2 A16]))) 
>167 {floathisf2} (insn_list 271 (nil))
>     (nil))
> miPck1Prim.c:337: confused by earlier errors, bailing out
> *** Error code 1
> Stop in 
> *** Error code 1
> Stop in 
> *** Error code 1
> Stop in 
> *** Error code 1 (ignored)
> *** Error code 1
> Stop in /usr/ports/x11-servers/XFree86-4-Server.
> *** Error code 1
> Stop in /usr/ports/x11/wrapper.
> *** Error code 1
> Stop in /usr/ports/x11/XFree86-4.

Vallo Kallaste

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to