]> Savannah Git Hosting - gnulib.git/commitdiff
memcmp: Mention the clang bug.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Dec 2018 08:25:57 +0000 (09:25 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Dec 2018 08:26:38 +0000 (09:26 +0100)
* tests/test-memcmp.c: Add comment about a known test failure.
* doc/posix-functions/memcmp.texi: Mention the clang bug.

ChangeLog
doc/posix-functions/memcmp.texi
tests/test-memcmp.c

index 10b89637349310ec52dd0387b64d3cb4a0b7f6b2..cb6d8178bde111f36ce15aaa177c0fa83f2e06c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-12-21  Bruno Haible  <bruno@clisp.org>
+
+       memcmp: Mention the clang bug.
+       * tests/test-memcmp.c: Add comment about a known test failure.
+       * doc/posix-functions/memcmp.texi: Mention the clang bug.
+
 2018-12-20  Jim Meyering  <meyering@fb.com>
 
        revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
index 3d3fe64186666cb465facd944b84c9b77ee9d898..aebc4a1e2e4623041cefc5e5819da939f0d9fc60 100644 (file)
@@ -21,4 +21,7 @@ NeXTstep/x86.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+This function produces wrong results when the arguments are constant strings
+and the compiler is clang 6.0.1.
 @end itemize
index 93cab0a028d04e38e8209d48b6e7648ceea9d2ae..1c98974a2eb16280ca36e127f36f50ee7487a602 100644 (file)
@@ -25,6 +25,9 @@ SIGNATURE_CHECK (memcmp, int, (void const *, void const *, size_t));
 #include "zerosize-ptr.h"
 #include "macros.h"
 
+/* Note: This test sometimes fails when compiled by 'clang'.
+   See <https://bugs.llvm.org/show_bug.cgi?id=40063>.  */
+
 int
 main (void)
 {