Date: Wed, 15 Apr 1998 03:20:02 -0700 (PDT) From: Craig Wilson <craig@natsoft.com.au> To: freebsd-bugs Subject: Re: i386/3895 Message-ID: <199804151020.DAA18194@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/3895; it has been noted by GNATS.
From: Craig Wilson <craig@natsoft.com.au>
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 <eivind@FreeBSD.ORG>]
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804151020.DAA18194>
