Bug 21060

Summary: http://www.freebsd.org/cgi/query-pr.cgi?pr=21026
Product: Base System Reporter: Steve Roome <steve>
Component: gnuAssignee: GNATS administrator <gnats-admin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 1.0-RELEASE   
Hardware: Any   
OS: Any   

Description Steve Roome 2000-09-05 14:50:02 UTC
 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
Comment 1 Steve Price freebsd_committer freebsd_triage 2000-09-05 15:00:10 UTC
State Changed
From-To: open->closed

This is a followup to another PR, gnu/21026.