2014-05-04 Janne Blomqvist <jb@gcc.gnu.org>
Backport from 4.9
PR libfortran/56919
* intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
_POSIX_MONOTONIC_CLOCK as well.
From-SVN: r210042
+2014-05-04 Janne Blomqvist <jb@gcc.gnu.org>
+
+ Backport from 4.9
+ PR libfortran/56919
+ * intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
+ _POSIX_MONOTONIC_CLOCK as well.
+
2014-04-12 Jerry DeLisle <jvdelisle@gcc.gnu>
Backport from mainline
PR libfortran/60810
- io/unit.c (is_trim_ok): If internal unit is array, do not trim.
+ * io/unit.c (is_trim_ok): If internal unit is array, do not trim.
2014-03-15 Jerry DeLisle <jvdelisle@gcc.gnu>
/* POSIX states that CLOCK_REALTIME must be present if clock_gettime
is available, others are optional. */
#if defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_GETTIME_LIBRT)
-#ifdef CLOCK_MONOTONIC
+#if defined(CLOCK_MONOTONIC) && defined(_POSIX_MONOTONIC_CLOCK) \
+ && _POSIX_MONOTONIC_CLOCK >= 0
#define GF_CLOCK_MONOTONIC CLOCK_MONOTONIC
#else
#define GF_CLOCK_MONOTONIC CLOCK_REALTIME