From owner-freebsd-bugs Tue Apr 14 17:14:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA26483 for freebsd-bugs-outgoing; Tue, 14 Apr 1998 17:14:37 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from natsoft.com.au (natsoft.com.au [203.39.138.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA26475; Wed, 15 Apr 1998 00:14:23 GMT (envelope-from craig@natsoft.com.au) Received: from Win95.natsoft.com.au (Win95 [203.39.138.131]) by natsoft.com.au (8.8.5/8.8.5) with SMTP id LAA09681; Wed, 15 Apr 1998 11:15:14 GMT Message-ID: <3533FB85.72B3@natsoft.com.au> Date: Wed, 15 Apr 1998 10:12:53 +1000 From: Craig Wilson Organization: National Software Pty Ltd X-Mailer: Mozilla 3.04 (Win95; I) MIME-Version: 1.0 To: Eivind Eklund CC: ajhar@noao.edu, freebsd-bugs@FreeBSD.ORG Subject: Re: i386/3895 References: <199804142326.QAA14665@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Eivind Eklund wrote: > > Synopsis: False FPE (floating point exception) signaled > > State-Changed-From-To: open-closed > State-Changed-By: eivind > State-Changed-When: Tue Apr 14 16:25:04 PDT 1998 > State-Changed-Why: > We don't have any reproducable case, and we're not likely to get any. > The submitter is no longer bothered by the problem. > 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