Date: Wed, 5 Jan 2000 17:52:40 -0600 From: Dan Nelson <dnelson@emsphone.com> To: "Ronald F. Guilmette" <rfg@monkeys.com> Cc: Markus Holmberg <saska@acc.umu.se>, Martin Cracauer <cracauer@cons.org>, freebsd-hackers@FreeBSD.ORG Subject: Re: Should -mieee-fp equal fpsetmask(0) to avoid SIGFPE on FreeBSD? Message-ID: <20000105175240.A68089@dan.emsphone.com> In-Reply-To: <2604.947108189@monkeys.com>; from "Ronald F. Guilmette" on Wed Jan 5 13:36:29 GMT 2000 References: <20000105220218.A77259@fysgr387.sn.umu.se> <2604.947108189@monkeys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 05), Ronald F. Guilmette said: > I hope that isn't true. _I_ certainly haven't yet given up hope that > someone will do the Right Thing and disable all IEEE traps before > entry to main(). Take a look at /sys/i386/include/npx.h; I believe you can change the default FP mask there. Set __INITIAL_NPXCW__ to your favourite hex value, and rebuild the kernel. > >... and it's not clear if the Mozilla code is correct or not. > > It isn't. Aah, but we wouldn't have found the bug if FreeBSD hadn't caught it :) I prefer to trap by default. The very few programs that require IEEE conformance can call fpsetmask() themselves. -- Dan Nelson dnelson@emsphone.com 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?20000105175240.A68089>