[Bug libfortran/30780] cpu_time produces a floating point exception when used with -O0
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 13 06:41:00 GMT 2007
------- Comment #6 from kargl at gcc dot gnu dot org 2007-02-13 06:41 -------
(In reply to comment #5)
> The exception is occurring in the print statement. Nothing to do with time.
>
No, there is a "problem" in cpu_time. -ffpe-trap='precision' is
trapping on lost precision. On x86_64, long is 64-bit and
GFC_REAL_4 is 32-bit with only 24-bits of precision. You can't
convert long to GFC_REAL_4 without loss of precision. In short,
using this option is probably not a good idea if you have mixed
mode math.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30780
More information about the Gcc-bugs
mailing list