comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Forcing exceptions on NANs with GNAT?
Date: Thu, 20 Nov 2008 08:19:56 -0800 (PST)
Date: 2008-11-20T08:19:56-08:00	[thread overview]
Message-ID: <529a1ef9-2ecc-402f-bec0-f227851af457@i20g2000prf.googlegroups.com> (raw)
In-Reply-To: gg3ghl$koi$1@nntp.ilk.net

On Nov 20, 3:09 am, Markus Schoepflin <nos...@no.spam> 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.)

I really don't know that much about GNAT, but do those operations
cause SIGFPE signals to be generated, and if so, can they be caught by
an interrupt handler (see C.3)?  And can that handler raise an
exception that is propagated to the program (task) that performed the
operation?

                               -- Adam




  parent reply	other threads:[~2008-11-20 16:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 11:09 Forcing exceptions on NANs with GNAT? Markus Schoepflin
2008-11-20 13:35 ` Jean-Pierre Rosen
2008-11-20 13:46 ` Dmitry A. Kazakov
2008-11-21 19:55   ` sjw
2008-11-20 16:19 ` Adam Beneschan [this message]
2008-11-21  5:01 ` Jerry
2008-11-21  9:33 ` Markus Schoepflin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox