From: Bruno Haible Date: Fri, 21 Dec 2018 08:25:57 +0000 (+0100) Subject: memcmp: Mention the clang bug. X-Git-Tag: v1.0~5215 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=35be50fbe0e276bf89c5b4aac7004c662d5a24bf;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 10b8963734..cb6d8178bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-12-21 Bruno Haible + + 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 revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7 diff --git a/doc/posix-functions/memcmp.texi b/doc/posix-functions/memcmp.texi index 3d3fe64186..aebc4a1e2e 100644 --- a/doc/posix-functions/memcmp.texi +++ b/doc/posix-functions/memcmp.texi @@ -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 diff --git a/tests/test-memcmp.c b/tests/test-memcmp.c index 93cab0a028..1c98974a2e 100644 --- a/tests/test-memcmp.c +++ b/tests/test-memcmp.c @@ -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 . */ + int main (void) {