Mercurial > gnulib
changeset 40048:59dbafac4d42
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 21 Dec 2018 09:25:57 +0100 |
parents | 183a2f6b0b16 |
children | 91d1555db71d |
files | ChangeLog doc/posix-functions/memcmp.texi tests/test-memcmp.c |
diffstat | 3 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Dec 20 19:51:48 2018 -0800 +++ b/ChangeLog Fri Dec 21 09:25:57 2018 +0100 @@ -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
--- a/doc/posix-functions/memcmp.texi Thu Dec 20 19:51:48 2018 -0800 +++ b/doc/posix-functions/memcmp.texi Fri Dec 21 09:25:57 2018 +0100 @@ -21,4 +21,7 @@ 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
--- a/tests/test-memcmp.c Thu Dec 20 19:51:48 2018 -0800 +++ b/tests/test-memcmp.c Fri Dec 21 09:25:57 2018 +0100 @@ -25,6 +25,9 @@ #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) {