From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12758 invoked by alias); 7 Aug 2014 11:09:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12719 invoked by uid 48); 7 Aug 2014 11:09:19 -0000 From: "wxcvbn789456123-nw6wda at yahoo dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62049] New: Negative count_rate when calling system_clock Date: Thu, 07 Aug 2014 11:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wxcvbn789456123-nw6wda at yahoo dot fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00455.txt.bz2 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