public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/62049] New: Negative count_rate when calling system_clock
@ 2014-08-07 11:09 wxcvbn789456123-nw6wda at yahoo dot fr
  2014-08-25  6:58 ` [Bug fortran/62049] " wxcvbn789456123-nw6wda at yahoo dot fr
  2015-03-23  5:47 ` jvdelisle at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: wxcvbn789456123-nw6wda at yahoo dot fr @ 2014-08-07 11:09 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-23  4:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-07 11:09 [Bug fortran/62049] New: Negative count_rate when calling system_clock wxcvbn789456123-nw6wda at yahoo dot fr
2014-08-25  6:58 ` [Bug fortran/62049] " wxcvbn789456123-nw6wda at yahoo dot fr
2015-03-23  5:47 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).