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: SIGFPE, Arithmetic exception. "Value optimized out" when using --ffast-math


Paul,

> Trying the options one-by-one, it was the -funsafe-math-optimizations
> option that caused the program to crash using gfortran 4.4.4.

Could you try 
-O3 -funsafe-math-optimizations -ffinite-math-only -fno-reciprocal-math
and
-O3 -funsafe-math-optimizations -ffinite-math-only -fno-tree-vectorize
?

What you describe reminds me pr43716
( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43716 ).
This pr appeared and disappeared without convincing explanation
and could be a rampant bug exposed by your code. Does it contain
constructs such as the one in comment #13?

> I guess just the name of that option should raise a red flag, hey? :o)

I am not sure that the name has been well chosen. I rather think
that code that are not surviving associative-math or reciprocal-math
are themselves unsafe.

Cheers,

Dominique


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