From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75f197493b7ab882 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!s9g2000prm.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Forcing exceptions on NANs with GNAT? Date: Thu, 20 Nov 2008 21:01:07 -0800 (PST) Organization: http://groups.google.com Message-ID: <4ea01f67-ccd4-40d2-8dff-b1f0943bb65b@s9g2000prm.googlegroups.com> References: NNTP-Posting-Host: 75.171.118.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1227243667 13501 127.0.0.1 (21 Nov 2008 05:01:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 Nov 2008 05:01:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s9g2000prm.googlegroups.com; posting-host=75.171.118.178; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US) AppleWebKit/525.18 (KHTML, like Gecko, Safari/525.20) OmniWeb/v622.3.0.105198,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3693 Date: 2008-11-20T21:01:07-08:00 List-Id: On Nov 20, 4:09=A0am, Markus Schoepflin wrote: > Platform: Linux > Compiler: GCC/GNAT 3.4.3 > > Hello, > > is it possible to influence the behaviour of GNAT regarding the handling = of > NANs? (Most importantly in the special case of division by zero.) > > We need to get exceptions whenever a NAN is generated, is this possible > somehow? (For example by setting Machine_Overflow to True and recompiling > the compiler itself.) > > Regards, > Markus There was a discussion about NaNs a while back. Not sure how much of it is useful to you, but here's the link: http://groups.google.com/group/comp.lang.ada/browse_thread/thread/772ddcb41= cd06d5b/746f9f7e98a8d2f9?hl=3Den#746f9f7e98a8d2f9 Jerry