[Bug fortran/56919] [4.7/4.8 Regression] Wrong result for SYSTEM_CLOCK on Cygwin

2013-05-15 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56919

Janne Blomqvist  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2013-05-15
   Assignee|unassigned at gcc dot gnu.org  |jb at gcc dot gnu.org
Summary|[4.7/4.8/4.9 Regression]|[4.7/4.8 Regression] Wrong
   |Wrong result for|result for SYSTEM_CLOCK on
   |SYSTEM_CLOCK on Cygwin  |Cygwin
 Ever confirmed|0   |1

--- Comment #7 from Janne Blomqvist  ---
Issue is fixed on trunk (4.9). 

The question is whether it's useful to backport to 4.7 and 4.8. The previous
cygwin behavior, while perhaps surprising, isn't wrong per se and while the new
behavior is an improvement (IMHO) it's a (subtle) change in behavior which
might be surprising in the middle of a release series.

Maybe just backport the _POSIX_MONOTONIC_CLOCK part to fix(?) newlib targets,
and leave the windows stuff as is?


[Bug fortran/56919] [4.7/4.8 Regression] Wrong result for SYSTEM_CLOCK on Cygwin

2014-05-03 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56919

--- Comment #8 from Janne Blomqvist  ---
Author: jb
Date: Sat May  3 20:56:26 2014
New Revision: 210041

URL: http://gcc.gnu.org/viewcvs?rev=210041&root=gcc&view=rev
Log:
PR 56919 Check _POSIX_MONOTONIC_CLOCK.

2014-05-03  Janne Blomqvist  

Backport from 4.9
PR libfortran/56919
* intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
_POSIX_MONOTONIC_CLOCK as well.

Modified:
branches/gcc-4_8-branch/libgfortran/ChangeLog
branches/gcc-4_8-branch/libgfortran/intrinsics/system_clock.c


[Bug fortran/56919] [4.7/4.8 Regression] Wrong result for SYSTEM_CLOCK on Cygwin

2014-05-03 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56919

--- Comment #9 from Janne Blomqvist  ---
Author: jb
Date: Sat May  3 21:03:10 2014
New Revision: 210042

URL: http://gcc.gnu.org/viewcvs?rev=210042&root=gcc&view=rev
Log:
PR 56919 Check _POSIX_MONOTONIC_CLOCK.

2014-05-04  Janne Blomqvist  

Backport from 4.9
PR libfortran/56919
* intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
_POSIX_MONOTONIC_CLOCK as well.

Modified:
branches/gcc-4_7-branch/libgfortran/ChangeLog
branches/gcc-4_7-branch/libgfortran/intrinsics/system_clock.c


[Bug fortran/56919] [4.7/4.8 Regression] Wrong result for SYSTEM_CLOCK on Cygwin

2014-05-03 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56919

Janne Blomqvist  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #10 from Janne Blomqvist  ---
Backported the _POSIX_MONOTONIC_CLOCK check to 4.7/4.8, closing as fixed.