https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62049
Bug ID: 62049 Summary: Negative count_rate when calling system_clock Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: wxcvbn789456123-nw6wda at yahoo dot fr Negative count_rate when calling system_clock Dear Sirs, I found that a call to system_clock can return a negative count_rate with gfortran. This problem does not occur with ifort. Operating system = Microsoft Windows XP SP3 gfortran : downloaded from : http://users.humboldt.edu/finneyb/gfortran-windows-20140629.exe Example under a Cygwin session : bash 2 : uname -smo CYGWIN_NT-5.1 i686 Cygwin bash 3 : gfortran --version GNU Fortran (GCC) 4.10.0 20140629 (experimental) [trunk revision 212119] Copyright (C) 2014 Free Software Foundation, Inc. bash 4 : cat clock.f90 PROGRAM clock IMPLICIT NONE INTEGER :: crate CALL system_clock (count_rate = crate) WRITE(*,6000) crate 6000 FORMAT(1X,"count_rate = ",I0) END PROGRAM clock bash 5 : gfortran clock.f90 -o g.exe bash 6 : ./g.exe count_rate = -1128267296 bash 7 : ifort /nologo clock.f90 /exe:i.exe bash 8 : ./i.exe count_rate = 10000 Can this behavior be considered as a bug? Greetings Paul