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



------- Comment #3 from kargl at gcc dot gnu dot org  2007-02-13 04:26 -------
troutmask:sgk[223] gfc4x -o z -g -ffpe-trap='precision' g.f90
troutmask:sgk[224] gdb ./z
(gdb) run
Starting program: /usr/home/sgk/tmp/z 

Program received signal SIGFPE, Arithmetic exception.
0x000000000040a3b2 in *_gfortrani_cpu_time_4 (time=0x7fffffffe988)
    at ../../../gcc4x/libgfortran/intrinsics/cpu_time.c:160
160       *time = sec + usec * (GFC_REAL_4)1.e-6;

I have no idea how to fix this problem at the moment.
This is on amd64-*-freebsd.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-13 04:26:26
               date|                            |


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]