From nobody@FreeBSD.org  Fri Oct 26 12:07:36 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8A15A16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2007 12:07:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 78EB013C4B3
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2007 12:07:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9QC753x099077
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Oct 2007 12:07:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9QC75uH099076;
	Fri, 26 Oct 2007 12:07:05 GMT
	(envelope-from nobody)
Message-Id: <200710261207.l9QC75uH099076@www.freebsd.org>
Date: Fri, 26 Oct 2007 12:07:05 GMT
From: Kyryll A Mirnenko <mirya@zoc.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gcc4.2.1 in 7.0 produces internal errors for some flags
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117530
>Category:       gnu
>Synopsis:       gcc4.2.1 in 7.0 produces internal errors for some flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 26 12:10:01 UTC 2007
>Closed-Date:    Tue Dec 25 13:59:16 UTC 2007
>Last-Modified:  Tue Dec 25 13:59:16 UTC 2007
>Originator:     Kyryll A Mirnenko
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD miryanote 7.0-BETA1 FreeBSD 7.0-BETA1 #1: Wed Oct 24 00:22:59 EEST 2007     root@miryanote:/usr/obj/usr/src/sys/MY-LITE  i386
>Description:
gcc produces an internal error for a specific CFLAGS;

with CFLAGS=-O2 -ffast-math -pipe

building of x11-fonts/libXfont fails this way:

===>  Building for libXfont-1.3.1,1
..
/bin/sh ../../libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../include/X11/fonts -I../../include  -I../../src/stubs     -Wall -Wpointer-arith -Wstrict-prototypes      -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -O2 -pipe -ffast-math -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/local/include -MT fontxlfd.lo -MD -MP -MF .deps/fontxlfd.Tpo -c -o fontxlfd.lo fontxlfd.c
 cc -DHAVE_CONFIG_H -I. -I../.. -I../../include/X11/fonts -I../../include -I../../src/stubs -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -pipe -ffast-math -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/local/include -MT fontxlfd.lo -MD -MP -MF .deps/fontxlfd.Tpo -c fontxlfd.c  -fPIC -DPIC -o .libs/fontxlfd.o
fontxlfd.c: In function 'xlfd_double_to_text':
fontxlfd.c:190: error: unable to find a register to spill in class 'AREG'
fontxlfd.c:190: error: this is the insn:
(insn:HI 388 105 389 17 (set (reg:HI 1 dx [121])
        (unspec:HI [
                (compare:CCFP (reg/v:DF 83 [ value ])
                    (const_double:DF 0.0 [0x0.0p+0]))
            ] 21)) 13 {*cmpfp_0} (nil)
    (nil))
fontxlfd.c:190: confused by earlier errors, bailing out
*** Error code 1

Stop in /usr/ports/x11-fonts/libXfont/work/libXfont-1.3.1/src/util.
*** Error code 1

Stop in /usr/ports/x11-fonts/libXfont/work/libXfont-1.3.1/src.
*** Error code 1

Stop in /usr/ports/x11-fonts/libXfont/work/libXfont-1.3.1.
*** Error code 1

Stop in /usr/ports/x11-fonts/libXfont/work/libXfont-1.3.1.
*** Error code 1

Stop in /usr/ports/x11-fonts/libXfont.


gcc-3.4.6 from 6.2 was able to build the same port with the same CFLAGS
>How-To-Repeat:
Set the CFLAGS to what written above and try building x11-fonts/libXfont on 7.0
>Fix:


>Release-Note:
>Audit-Trail:

From: "Craig Rodrigues" <rodrigc@crodrigues.org>
To: Kyryll A Mirnenko <mirya@zoc.com.ua>
Cc: bug-followup@freebsd.org
Subject: Re: gnu/117530: gcc4.2.1 in 7.0 produces internal errors for some flags
Date: Fri, 26 Oct 2007 10:20:01 -0400

 On Fri, Oct 26, 2007 at 12:07:05PM +0000, Kyryll A Mirnenko wrote:
 > fontxlfd.c: In function 'xlfd_double_to_text':
 > fontxlfd.c:190: error: unable to find a register to spill in class 'AREG'
 > fontxlfd.c:190: error: this is the insn:
 > (insn:HI 388 105 389 17 (set (reg:HI 1 dx [121])
 >         (unspec:HI [
 >                 (compare:CCFP (reg/v:DF 83 [ value ])
 >                     (const_double:DF 0.0 [0x0.0p+0]))
 >             ] 21)) 13 {*cmpfp_0} (nil)
 >     (nil))
 
 
 Since this is a a GCC bug, you should follow the procedure
 at: http://gcc.gnu.org/bugs.html
 for collecting enough information to file a proper GCC bug report,
 and submit it to the GCC project.
 
 -- 
 Craig Rodrigues
 rodrigc@crodrigues.org
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Tue Dec 25 13:58:21 UTC 2007 
State-Changed-Why:  
Please pursue this with the GCC developers and follow up if necessary 
once a fix is provided. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117530 
>Unformatted:
