[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-03-10 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2009-03-10 15:29 --- > Can someone reproduce this with C code? Yes: The following gives a SIGFPE with -m32 (logf, sqrtf) and with -m64 and "sqrtf" but not with -m64 with "logf". (Compile with "-fsignaling-nans" and "-lm".)

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-27 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2009-02-27 13:15 --- (In reply to comment #8) > If it works with some but not all libm routines, it sounds more like a GLIBC > than like a GCC problem. Can someone reproduce this with C code? -- http://gcc.gnu.org/bugzilla/show_bug.c

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-27 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2009-02-27 10:49 --- > Note that the problem also appears for log, while it does not for acosh and > atanh: If it works with some but not all libm routines, it sounds more like a GLIBC than like a GCC problem. -- http://gcc.gnu.org/

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-27 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-02-27 09:13 --- Note that the problem also appears for log, while it does not for acosh and atanh: real :: x = -5.0 ! FPE is not thrown print *, log(x) print *, log10(x) print *, acos(x) print *, asin(x) ! FPE is thrown !print *, s

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-27 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-02-27 09:01 --- On x86_64-unknown-linux-gnu I *do* get the ICE when I compile with -ffast-math -mfpmath=387. Cf. http://gcc.gnu.org/ml/fortran/2008-11/msg00250.html. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39314

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-26 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-02-26 19:22 --- Also on i386-apple-darwin9.6.0 the FPEs are thrown correctly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39314

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-02-26 18:05 --- Or maybe libc's acos is broken In which case this is not a GCC bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39314

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-26 Thread burnus at gcc dot gnu dot org
--- 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.

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-26 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-02-26 15:45 --- Sorry, forgot to specify the target: x86_64-unknown-linux-gnu. -- janus at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/39314] -ffpe-trap=invalid gives no FPE for acos(-5.0)

2009-02-26 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2009-02-26 15:35 --- What target? Works for me on FreeBSD. laptop:kargl[23] ~/work/bin/gfortran -static -o z -ffpe-trap=invalid j.f90 laptop:kargl[24] ./z Floating exception (core dumped) laptop:kargl[25] cat j.f90 real :: x = 1.0 print