diff options
author | Bruno Haible <bruno@clisp.org> | 2021-01-24 09:03:05 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-01-24 09:03:05 +0100 |
commit | 829ed1e388a5c12fc8e8c7dd7af846a0540ffd7c (patch) | |
tree | 37a5415466311b35b9899ecff6c39c24743f8434 /m4 | |
parent | c20ba6929e5ac4a9cc72cd2b1f2d938e219adb01 (diff) | |
download | gnulib-829ed1e388a5c12fc8e8c7dd7af846a0540ffd7c.tar.gz |
expm1l: Fix configure test result with GCC 10 on powerpc64le.
* m4/expm1l.m4 (gl_FUNC_EXPM1L): Change test to avoid GCC optimization.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/expm1l.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/expm1l.m4 b/m4/expm1l.m4 index 0eaaf844ba..8fe31b574b 100644 --- a/m4/expm1l.m4 +++ b/m4/expm1l.m4 @@ -1,4 +1,4 @@ -# expm1l.m4 serial 7 +# expm1l.m4 serial 8 dnl Copyright (C) 2010-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -134,7 +134,8 @@ int main (int argc, char *argv[]) long double x = 11.358L; long double y = my_expm1l (x); long double z = my_expm1l (- x); - long double err = (y + (1.0L + y) * z) * TWO_LDBL_MANT_DIG; + volatile long double t = (1.0L + y) * z; + long double err = (y + t) * TWO_LDBL_MANT_DIG; if (!(err >= -100.0L && err <= 100.0L)) result |= 1; } |