From owner-freebsd-bugs Sat May 2 22:32:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA09284 for freebsd-bugs-outgoing; Sat, 2 May 1998 22:32:19 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA09278 for ; Sat, 2 May 1998 22:32:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA22804; Sat, 2 May 1998 22:30:01 -0700 (PDT) Date: Sat, 2 May 1998 22:30:01 -0700 (PDT) Message-Id: <199805030530.WAA22804@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Tim Vanderhoek Subject: Re: i386/3895 Reply-To: Tim Vanderhoek 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: Tim Vanderhoek To: Craig Wilson Cc: Eivind Eklund , ajhar@noao.edu, bug-followup@FreeBSD.ORG Subject: Re: i386/3895 Date: Sun, 3 May 1998 01:24:32 -0400 (EDT) On Wed, 15 Apr 1998, Craig Wilson wrote: > > Synopsis: False FPE (floating point exception) signaled > > > > State-Changed-From-To: open-closed [...] > 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. It happens when it's not properly defined, even if both are in the same source file. It is because when gcc sees getdouble() in main, getdouble() defaults to return int. Unfortunately, getdouble() actually returns a double. This isn't a bug in gcc. It is arguably a bug in the fortran compiler, since, from what I understand, that was what generated this code when fed bad code itself. The PR should remain closed. -- This .sig is not innovative, witty, or profund. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message