From steve@sse0691.bri.hp.com  Tue Sep  5 06:49:45 2000
Return-Path: <steve@sse0691.bri.hp.com>
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68])
	by hub.freebsd.org (Postfix) with ESMTP
	id 1D04937B424; Tue,  5 Sep 2000 06:49:41 -0700 (PDT)
Received: from hpcpbla.bri.hp.com (hpcpbla.bri.hp.com [15.144.112.65])
	by bbnrel4.net.external.hp.com (Postfix) with ESMTP
	id 9164F14DB6; Tue,  5 Sep 2000 15:49:37 +0200 (METDST)
Received: from sse0691.bri.hp.com (sse0691.bri.hp.com [15.144.0.53])
	by hpcpbla.bri.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.0) with ESMTP id OAA02373;
	Tue, 5 Sep 2000 14:49:36 +0100 (BST)
Received: (from steve@localhost)
	by sse0691.bri.hp.com (8.9.3/8.9.3) id OAA60327;
	Tue, 5 Sep 2000 14:52:34 +0100 (BST)
	(envelope-from steve)
Message-Id: <20000905145234.F17769@moose.bri.hp.com>
Date: Tue, 5 Sep 2000 14:52:34 +0100
From: Steve Roome <steve@sse0691.bri.hp.com>
To: sheldonh@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org
In-Reply-To: <200009041506.IAA12127@freefall.freebsd.org>; from sheldonh@FreeBSD.org on Mon, Sep 04, 2000 at 08:06:26AM -0700
Subject: http://www.freebsd.org/cgi/query-pr.cgi?pr=21026
References: <200009041506.IAA12127@freefall.freebsd.org>

>Number:         21060
>Category:       gnu
>Synopsis:       http://www.freebsd.org/cgi/query-pr.cgi?pr=21026
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 05 06:50:02 PDT 2000
>Closed-Date:    Tue Sep 5 07:00:10 PDT 2000
>Last-Modified:  Wed Oct 26 06:26:41 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 On Mon, Sep 04, 2000 at 08:06:26AM -0700, sheldonh@FreeBSD.org wrote:
 > Synopsis: gcc bug with -mno-ieee-fp and -march=pentiumpro
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: sheldonh
 > State-Changed-When: Mon Sep 4 08:05:16 PDT 2000
 > State-Changed-Why: 
 > David will probably want to know whether the problem exists
 > in stock gcc without FreeBSD's modifications.  Can you test
 > this out and provide feedback in the form of an e-mail
 > message sent to <freebsd-gnats-submit@FreeBSD.org> with
 > the subject line of this message?
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=21026
 
 This problem appears also in a stock gcc-2.95.2 I've just built
 on FreeBSD without any mods, same sig11 in cc1 when comparisons
 between floats and ints are made.
 
 N.B. the following code cause the problem :
 
 main() {
 	float a;
 	if (a>0);
 }
 
 but this doesn't :
 
 main() {
 	float a;
 	if ((int)a>0);
 }
 
 Granted the second is effectively a little more correct, however it
 still shouldn't segfault but warn about either casting the float to
 int for the comparison or casting the 0 to float for comparison with
 a. I'm still unsure which way round the problem is though, but it does
 appear to be a gcc bug rather than a bug with the FreeBSD
 modifications.
 
 {
 This stock gcc also crashes with -mno-move and -march=pentiumpro
 as well, but that's triggering what seems like buggy gcc code rather
 than some obscure sig11. : 
 /usr/tempgcc/bin/gcc -O6 -march=pentiumpro -mno-move -c main.c -o main.o
 main.c: In function `main':
 main.c:206: Internal compiler error in `instantiate_virtual_regs_1', at function.c:3863
 Please submit a full bug report.
 See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
 *** Error code 1
 }
 
 	Steve Roome
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue Sep 5 07:00:10 PDT 2000 
State-Changed-Why:  
This is a followup to another PR, gnu/21026. 

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