]> Savannah Git Hosting - gnulib.git/commitdiff
expm1l: Document musl libc bug.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2021 12:14:29 +0000 (13:14 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2021 12:14:29 +0000 (13:14 +0100)
* doc/posix-functions/expm1l.texi: Document musl libc bug.
* m4/expm1l.m4 (gl_FUNC_EXPM1L): Update comment and cross
compilation guess.

ChangeLog
doc/posix-functions/expm1l.texi
m4/expm1l.m4

index 72ce05667c3169144b8315d78187a6b6ea3705e6..8f7f5eef046f2aec404c1455375bf32c3bb16890 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-01-31  Bruno Haible  <bruno@clisp.org>
+
+       expm1l: Document musl libc bug.
+       * doc/posix-functions/expm1l.texi: Document musl libc bug.
+       * m4/expm1l.m4 (gl_FUNC_EXPM1L): Update comment and cross
+       compilation guess.
+
 2021-01-31  Bruno Haible  <bruno@clisp.org>
 
        expl: Document musl libc bug.
index 4cd58a802711c7d5689d7e63373eb4dbb1d2fe3f..059d5fc19e26a2d95ce0397fa5a3e5443b91c4c8 100644 (file)
@@ -17,7 +17,7 @@ IRIX 6.5.
 @item
 This function produces results which are accurate to only 16 digits on some
 platforms:
-Mac OS X 10.5, NetBSD 8.0.
+musl libc 1.2.2/arm64, musl libc 1.2.2/s390x, Mac OS X 10.5, NetBSD 8.0.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 8fe31b574bd94f6efb03c3e6ab5a8470dbf6036c..ec0d9078e11b7a232419505907523ea5af1b7df8 100644 (file)
@@ -1,4 +1,4 @@
-# expm1l.m4 serial 8
+# expm1l.m4 serial 9
 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,
@@ -123,7 +123,8 @@ int main (int argc, char *argv[])
 {
   long double (* volatile my_expm1l) (long double) = argc ? expm1l : dummy;
   int result = 0;
-  /* This test fails on Mac OS X 10.5, NetBSD 8.0.  */
+  /* This test fails on musl 1.2.2/arm64, musl 1.2.2/s390x, Mac OS X 10.5,
+     NetBSD 8.0.  */
   {
     const long double TWO_LDBL_MANT_DIG = /* 2^LDBL_MANT_DIG */
       (long double) (1U << ((LDBL_MANT_DIG - 1) / 5))
@@ -147,8 +148,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_expm1l_works="guessing yes" ;;
-                              # Guess yes on musl systems.
-               *-musl*)       gl_cv_func_expm1l_works="guessing yes" ;;
+                              # Guess no on musl systems.
+               *-musl*)       gl_cv_func_expm1l_works="guessing no" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_expm1l_works="guessing yes" ;;
                               # If we don't know, obey --enable-cross-guesses.