bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

improve clang support (30)


From: Bruno Haible
Subject: improve clang support (30)
Date: Sat, 15 Aug 2020 17:52:59 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

On MSVC/clang, the printf.m4 tests report:

checking whether printf supports the zero flag correctly... no
checking whether printf supports large precisions... no

This occurs because clang inlines sprintf calls, and apparently still has
the same bug as we noticed for FreeBSD in 2007.
<https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html>


2020-08-15  Bruno Haible  <bruno@clisp.org>

        doc: Update for MSVC/clang.
        * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
        that MSVC 14 does not have.

diff --git a/doc/glibc-functions/obstack_printf.texi 
b/doc/glibc-functions/obstack_printf.texi
index a266192..c8b7d74 100644
--- a/doc/glibc-functions/obstack_printf.texi
+++ b/doc/glibc-functions/obstack_printf.texi
@@ -66,11 +66,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.0, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.0, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-Solaris 10/x86, mingw, MSVC 14.
+Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function can crash in out-of-memory conditions on some platforms:
 FreeBSD 6.0, NetBSD 5.0.
diff --git a/doc/glibc-functions/obstack_vprintf.texi 
b/doc/glibc-functions/obstack_vprintf.texi
index df5aa9b..fce571a 100644
--- a/doc/glibc-functions/obstack_vprintf.texi
+++ b/doc/glibc-functions/obstack_vprintf.texi
@@ -66,11 +66,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.0, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.0, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-Solaris 10/x86, mingw, MSVC 14.
+Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function can crash in out-of-memory conditions on some platforms:
 FreeBSD 6.0, NetBSD 5.0.
diff --git a/doc/posix-functions/fprintf.texi b/doc/posix-functions/fprintf.texi
index a7ebd58..986a2b4 100644
--- a/doc/posix-functions/fprintf.texi
+++ b/doc/posix-functions/fprintf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/printf.texi b/doc/posix-functions/printf.texi
index d815cad..0b5e2b9 100644
--- a/doc/posix-functions/printf.texi
+++ b/doc/posix-functions/printf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/snprintf.texi 
b/doc/posix-functions/snprintf.texi
index 2c89b7d..756a6d5 100644
--- a/doc/posix-functions/snprintf.texi
+++ b/doc/posix-functions/snprintf.texi
@@ -64,11 +64,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/sprintf.texi b/doc/posix-functions/sprintf.texi
index d5634b1..2c82dd5 100644
--- a/doc/posix-functions/sprintf.texi
+++ b/doc/posix-functions/sprintf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/vfprintf.texi 
b/doc/posix-functions/vfprintf.texi
index 77ba1f8..67f0566 100644
--- a/doc/posix-functions/vfprintf.texi
+++ b/doc/posix-functions/vfprintf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/vprintf.texi b/doc/posix-functions/vprintf.texi
index 06da1316..f137ccf 100644
--- a/doc/posix-functions/vprintf.texi
+++ b/doc/posix-functions/vprintf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/vsnprintf.texi 
b/doc/posix-functions/vsnprintf.texi
index d0e4c67..b4bf675 100644
--- a/doc/posix-functions/vsnprintf.texi
+++ b/doc/posix-functions/vsnprintf.texi
@@ -57,11 +57,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})
diff --git a/doc/posix-functions/vsprintf.texi 
b/doc/posix-functions/vsprintf.texi
index 21367eb..684ecf3 100644
--- a/doc/posix-functions/vsprintf.texi
+++ b/doc/posix-functions/vsprintf.texi
@@ -53,11 +53,11 @@ Mac OS X 10.12, FreeBSD 6.1.
 @item
 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
 with zeroes, or wrong capitalization) on some platforms:
-Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC 14.
+Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.2, IRIX 6.5, Solaris 11.4, 
Cygwin 1.5.x, mingw, MSVC/clang.
 @item
 This function does not support precisions larger than 512 or 1024 in integer,
 floating-point and pointer output on some platforms:
-AIX 7.1, Solaris 10/x86, mingw, MSVC 14.
+AIX 7.1, Solaris 10/x86, mingw, MSVC/clang.
 @item
 This function mishandles large floating point precisions
 (for example, formatting 1.0 with @samp{"%.511f"})




reply via email to

[Prev in Thread] Current Thread [Next in Thread]