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 libfortran/30780] cpu_time produces a floating point exception when used with -O0



------- 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


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