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

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

index 2bf40888b80ad29eba39db2b18981bff8a07c8cc..72ce05667c3169144b8315d78187a6b6ea3705e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-01-31  Bruno Haible  <bruno@clisp.org>
+
+       expl: Document musl libc bug.
+       * doc/posix-functions/expl.texi: Document musl libc bug.
+       * m4/expl.m4 (gl_FUNC_EXPL): Update comment and cross
+       compilation guess.
+
 2021-01-31  Bruno Haible  <bruno@clisp.org>
 
        relocatable-prog-wrapper: Update after recent changes.
index d0810b2ddc6e34102783d4e4ba7004a572d15537..f70589f29e86c0c0513176f194ed4e5dee777ddc 100644 (file)
@@ -23,7 +23,7 @@ MSVC 14.
 @item
 This function produces results which are accurate to only 16 digits on some
 platforms:
-NetBSD 9.0.
+musl libc 1.2.2/arm64, musl libc 1.2.2/s390x, NetBSD 9.0.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 0ed62ab4e0ebcb4ae6a66e5f0d1c2deee4be5856..9e7bfa7c59c9d439b973b33322b5bf4549520fd9 100644 (file)
@@ -1,4 +1,4 @@
-# expl.m4 serial 17
+# expl.m4 serial 18
 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,
@@ -129,7 +129,7 @@ int main (int argc, char *argv[])
     if (isnan (expl (x1)) || isnan (expl (x2)) || isnan (expl (x3)))
       result |= 2;
   }
-  /* This test fails on NetBSD 9.0.  */
+  /* This test fails on musl 1.2.2/arm64, musl 1.2.2/s390x, NetBSD 9.0.  */
   {
     const long double TWO_LDBL_MANT_DIG = /* 2^LDBL_MANT_DIG */
       (long double) (1U << ((LDBL_MANT_DIG - 1) / 5))
@@ -150,8 +150,8 @@ int main (int argc, char *argv[])
             [case "$host_os" in
                               # Guess yes on glibc systems.
                *-gnu* | gnu*) gl_cv_func_expl_works="guessing yes" ;;
-                              # Guess yes on musl systems.
-               *-musl*)       gl_cv_func_expl_works="guessing yes" ;;
+                              # Guess no on musl systems.
+               *-musl*)       gl_cv_func_expl_works="guessing no" ;;
                               # Guess yes on native Windows.
                mingw*)        gl_cv_func_expl_works="guessing yes" ;;
                               # If we don't know, obey --enable-cross-guesses.