This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Floating point exception trapping does not always work with log ()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]