From owner-freebsd-bugs Wed Apr 15 03:20:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA18248 for freebsd-bugs-outgoing; Wed, 15 Apr 1998 03:20:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA18194; Wed, 15 Apr 1998 03:20:02 -0700 (PDT) (envelope-from gnats) Date: Wed, 15 Apr 1998 03:20:02 -0700 (PDT) Message-Id: <199804151020.DAA18194@hub.freebsd.org> To: freebsd-bugs Cc: From: Craig Wilson Subject: Re: i386/3895 Reply-To: Craig Wilson Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/3895; it has been noted by GNATS. From: Craig Wilson To: FreeBSD-GNATS-submit@FreeBSD.ORG Cc: Subject: Re: i386/3895 Date: Wed, 15 Apr 1998 12:09:56 +0200 [Forwarded to the GNATS database by Eivind Eklund ] I have had this problem with the SCO Xenix C compiler. It is reproducable with the C compiler in FreeBSD 2.2.2 It will happen when a routine which returns a float is not properly defined in another source file that uses that routine. Adding "double getdouble();" prototype in float.c fixes the problem. float.c main() { int i; double iD; i=0; lp: iD=getdouble(); i++; printf("i=%d\n\r",i); goto lp; } float1.c double getdouble() { double iD; iD=1; return iD; } cc float.c float1.c -ofloat This program will perform 7 loops before crashing with a FPE. I hope this info helps. Craig Wilson National Software Pty Ltd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message