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

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

index 9aa58555c60be3bb18f70238fcbc177f2e60d822..46a490636534b12b6ccbd1719c1587207bb77511 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-01-31  Bruno Haible  <bruno@clisp.org>
+
+       log10l: Document musl libc bug.
+       * doc/posix-functions/log10l.texi: Document musl libc bug.
+       * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Update comment and cross
+       compilation guess.
+
 2021-01-31  Bruno Haible  <bruno@clisp.org>
 
        logl: Document musl libc bug.
index 7dd6f49b033b0133797598c5e51f97bba55a57a7..ffddbcb442f66946aef2ad9b962ee9ef706ed082 100644 (file)
@@ -26,7 +26,7 @@ IRIX 6.5.
 @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 c594f6b5b187f94197cc4903d914ba6da6b1af01..57aa1ba87d4ad8227934fffe8be05a4ebf721939 100644 (file)
@@ -1,4 +1,4 @@
-# log10l.m4 serial 9
+# log10l.m4 serial 10
 dnl Copyright (C) 2011-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,
@@ -126,7 +126,7 @@ int main (int argc, char *argv[])
     if (!(gy + gy == gy))
       result |= 1;
   }
-  /* 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))
@@ -147,8 +147,8 @@ int main (int argc, char *argv[])
         [case "$host_os" in
                           # Guess yes on glibc systems.
            *-gnu* | gnu*) gl_cv_func_log10l_works="guessing yes" ;;
-                          # Guess yes on musl systems.
-           *-musl*)       gl_cv_func_log10l_works="guessing yes" ;;
+                          # Guess no on musl systems.
+           *-musl*)       gl_cv_func_log10l_works="guessing no" ;;
                           # Guess yes on native Windows.
            mingw*)        gl_cv_func_log10l_works="guessing yes" ;;
                           # If we don't know, obey --enable-cross-guesses.