aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-01-28 13:24:09 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-01-28 13:24:09 +0000
commit759812fddc81c0c131d4633b2a7f56412ce8dbed (patch)
tree43b81f0ab850782123d44b0823d571789d71d671 /gcc/fortran/parse.c
parent6c42e27c165b3ed1f2a388ed74091cd5a18bba85 (diff)
downloadgcc-759812fddc81c0c131d4633b2a7f56412ce8dbed.zip
gcc-759812fddc81c0c131d4633b2a7f56412ce8dbed.tar.gz
gcc-759812fddc81c0c131d4633b2a7f56412ce8dbed.tar.bz2
libstdc++: Replace glibc-specific check for clock_gettime (PR 93325)
It's wrong to assume that clock_gettime is unavailable on any *-*-linux* target that doesn't have glibc 2.17 or later. Use a generic test instead of using __GLIBC_PREREQ. Only do that test when is_hosted=yes so that we don't get an error for cross targets without a working linker. This ensures that C library's clock_gettime will be used on non-glibc targets, instead of an incorrect syscall to SYS_clock_gettime. PR libstdc++/93325 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Use AC_SEARCH_LIBS for clock_gettime instead of explicit glibc version check. * configure: Regenerate.
Diffstat (limited to 'gcc/fortran/parse.c')
0 files changed, 0 insertions, 0 deletions