This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Floating point exception trapping does not always work with log ()
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Harald Anlauf <anlauf at gmx dot de>
- Cc: fortran at gcc dot gnu dot org
- Date: Wed, 19 Nov 2008 14:49:27 -0800
- Subject: Re: Floating point exception trapping does not always work with log ()
- References: <49249229.6020607@gmx.de>
On Wed, Nov 19, 2008 at 11:24:41PM +0100, Harald Anlauf wrote:
> floating point exception trapping using the option
> "-ffpe-trap=..." does not always work as expected.
Works for me on x86_64-*-freebsd with or without -mfpath=387,
with or without -ffast-math. Seems to be a quality of
implementation problem with your OS's fenv facilities.
> Since there may be reasons to avoid the option -ffast-math,
There are numerous reasons to avoid -ffast-math. Perhaps,
the primary reason is a desire to generate correct results.
--
Steve