------- Comment #3 from burnus at gcc dot gnu dot org 2009-02-26 18:03 ------- Confirm: Here, I get the same result with -m64 on Linux (NaN and no SIGFPE), but with -m32 (with both -mfpmath=sse and -mfpmath=387) I get the SIGFPE.
The FPE settings are used in libgfortran/config/*; maybe fpu-387.h does something wrong in the x86-64 mode? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39314