(j3.2006) exception message on termination

Van Snyder van.snyder
Wed Jun 12 03:38:49 EDT 2013


On Wed, 2013-06-12 at 07:20 +0000, Whitlock, Stan wrote:
> We have found that the fp exception summary is useful at most half of
> the time... so we put it under a command line option that turns it on
> and off.  The default is no summary.

I would prefer that the requirement in the standard be turned into a
recommendation that the processor provide a means to control whether
exceptions are reported.  Stan's mechanism would fit that bill.  Another
possibility, nearly orthogonal, is a procedure in IEEE_Exceptions that
allows the program to specify which exceptions it wants reported; maybe
named something like IEEE_SET_EXCEPTION_REPORTING.  Maybe make it a
generic that accepts either a scalar or a rank-1 array of exception
identifiers from 14.3.  Perhaps include an optional reporting unit
number argument, defaulting to ERROR_UNIT.  Whether the setting is
restored on return, as the flags are, or it's "sticky," can be
determined in due course.

> 
> /Stan
> 
> -----Original Message-----
> From: j3-bounces at mailman.j3-fortran.org
> [mailto:j3-bounces at mailman.j3-fortran.org] On Behalf Of Robert Corbett
> Sent: Wednesday, June 12, 2013 12:00 AM
> To: j3
> Subject: (j3.2006) exception message on termination
> 
> Can we delete the second and third sentences of paragraph 2 in Clause
> 8.4 in the upcoming revision?  They state
> 
>       If an exception (14) is signaling on that image,
>       the processor shall issue a warning indicating
>       which exceptions are signaling; this warning
>       shall be on the unit identified by the named
>       constant ERROR_UNIT (13.8.2.8).  It is recommended
>       that the stop code is made available by formatted
>       output to the same unit.
> 
> Sun FORTRAN 77 produced such output.  It was a constant source of complaints from users.  As bad as Sun FORTRAN 77 was in this regard, it did not report inexact exceptions, as is required by the text of the standard.
> 
> Robert Corbett
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3





More information about the J3 mailing list