Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2000 02:00:42 -0500
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        "Ronald F. Guilmette" <rfg@monkeys.com>
Cc:        "Charles M. Hannum" <root@ihack.net>, freebsd-hackers@FreeBSD.ORG, Markus Holmberg <saska@acc.umu.se>, briano@netscape.com, gatgul@voicenet.com, brendan@mozilla.org, waldemar@netscape.com, daeron@Wit401305.student.utwente.nl, clayton@netscape.com, mccabe@netscape.com
Subject:   Re: Should -mieee-fp equal fpsetmask(0) to avoid SIGFPE on FreeBSD?
Message-ID:  <20000104020041.A20965@mad>
In-Reply-To: <61713.946960140@monkeys.com>; from Ronald F. Guilmette on Mon, Jan 03, 2000 at 08:29:00PM -0800
References:  <el2r9fysc3s.fsf@eniwetok.ihack.net> <61713.946960140@monkeys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 03, 2000 at 08:29:00PM -0800, Ronald F. Guilmette wrote:
> 
> >> >Question 1: What is the reason for FreeBSD to differ from other platforms
> >> >and not follow the IEEE standard by default?
> >> >(Please forgive me if this is an ignorant question.)
[...]
> >That's actually a trick question.  When I researched this a few years
> >ago, I found that *no* system other than NetBSD starts up in an
> >IEEE-conformant mode.  To wit:
> >
> >* iBCS2/SCO, SVR4 and FreeBSD leave exceptions unmasked.

This should be a FAQ.

Over time, many people have expressed their preferrence that
exceptions be masked by default in FreeBSD.  They are not by
conscious decision.  The situation can be summed by the following
quote from bde: "I don't plan to change the exception handling
until the other [libm ANSI conformance bugs] are fixed."

The short answer is that porting is made easiest by simply calling
fpsetmask(0) on FreeBSD.

I couldn't find any really good references explaining all the exact
details, but...

References to two message by bde that are a little more explicit:

Message-ID:  <199802210421.PAA18491@godzilla.zeta.org.au>
Message-ID:  <199802210518.QAA20463@godzilla.zeta.org.au>

You can use the interface at http://www.FreeBSD.org/search to search
for messages by Message-ID.

Also, the following PRs are relevant:

URL: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=105
URL: http://www.freebsd.org/cgi/query-pr.cgi?pr=229

There are many more references in the archives for the self-motivated.


-- 
Signature withheld by request of author.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000104020041.A20965>