This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/66480] FPE calling cpu_time() with -ffpe-trap=inexact


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66480

--- Comment #7 from Nicolas Bock <nicolasbock at gmail dot com> ---
(In reply to Steve Kargl from comment #6)
> On Wed, Jun 10, 2015 at 05:20:58PM +0000, nicolasbock at gmail dot com wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66480
> > 
> > --- Comment #5 from Nicolas Bock <nicolasbock at gmail dot com> ---
> > Thanks for the comments. I should have understood this exception
> > better before posting this as a bug.
> > 
> 
> We would rather see a bug report and then simply close it
> than to get no bug reports at all.  It is unlikely that
> one can avoid an inexact FPE in code involving floating
> point unless the algorithm is specifically designed to
> avoid it.

Thanks :) I agree with you, from it's definition, the inexact result exception
is going to be raised for most operations. Why would one want to trap it?


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