This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: I want my FPE!
- From: Mark Geisert <mark at maxrnd dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 9 Dec 2009 06:54:57 +0000 (UTC)
- Subject: Re: I want my FPE!
- References: <loom.20090917T213422-417@post.gmane.org> <4AB29DDF.301@gmail.com> <loom.20091209T065622-863@post.gmane.org>
Mark Geisert writes:
> I've tried many things [...]
...but I neglected the possibility of compiler expression optimization. I
replaced "1E200L * 1E200L" with "d * d" where d is initialized with 1E200L.
Voila, SIGFPE results and is trapped the way I wanted to.
I'm still looking for a way to similarly handle integer overflow exceptions.
Thanks,
..mark
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple