PR 56919 Check _POSIX_MONOTONIC_CLOCK.
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
This commit is contained in:
parent
11847e811b
commit
1666ebd49b
|
@ -1,8 +1,15 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -33,7 +33,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
/* 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
|
||||
|
|
Loading…
Reference in New Issue