Re: Floating-point exception handling
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: University of Michigan User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812) Terry Lambert wrote:
On Sep 28, 2009, at 3:13 PM, David N. Williams wrote:
David N. Williams wrote:
[...]
Even so, I still have a problem. When the example is run on OS X intel, the only signal code supplied to the handler in the si_code field of the siginfo_t structure, when it's invoked on SIGFPE, is FPE_NOOP. OS X ppc and GNU/Linux both supply at least FPE_FLTDIV and FPE_FLTINV -- other codes not tested yet. [...]
So am I doing something wrong?
Nobody seems to have an idea about this? :-( After experimenting with more cases, AFAICT I'm not doing anything wrong -- the discrepancy is real.
So let me advocate that the discrepancy be resolved to make the intel behavior for sigaction() the same as that for ppc and GNU/Linux. [...]
Am I off base here?
You aren't running Snow Leopard, where this is fixed, are you? No, I'm running 10.5.8, Leopard. (Actually I did say that before...) That's good news! Thanks for letting me know! -- David
Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
David N. Williams