assert-h, stdbool: Allow mixed use of gcc/g++ and clang/clang++ again

2024-10-29 Thread Bruno Haible via Gnulib discussion list
Two changes from September 2022 broke the GNU clisp build in the "debug-gcsafety" mode. Namely, in this mode, we use CC="g++" at configure time (since most of clisp is built with a C++ compiler) and CC="g++ -x c" only for the sources imported from Gnulib. As a consequence, HAVE_C_STATIC_ASSERT a

Re: [PATCH] crc: New optimised slice-by-8 implementation

2024-10-29 Thread Sam Russell
I know you guys have other work to do, and I appreciate your work on this so far. I would like to get this merged soon if possible. Bruno, can you please confirm whether you're happy with my implementation of the AC_ARG_ENABLE invocation? If so, I think we should be good to merge. If there's anyt

Re: [PATCH] crc: New optimised slice-by-8 implementation

2024-10-29 Thread Bruno Haible via Gnulib discussion list
Sam Russell wrote: > Bruno, can you please confirm whether you're happy with my implementation > of the AC_ARG_ENABLE invocation? Yes, it looks correct. The serial number 3 is correct too, since there was a crc.m4 serial 2 in the past. Bruno

Re: string-buffer: Enable resource leak warnings from clang

2024-10-29 Thread Bruno Haible via Gnulib discussion list
A misindentation in this commit: > 2024-09-25 Bruno Haible > > string-buffer: Enable resource leak warnings from clang. > * m4/gnulib-common.m4 (gl_COMMON_BODY): Define the macros > _GL_ATTRIBUTE_CAPABILITY_TYPE, _GL_ATTRIBUTE_ACQUIRE_CAPABILITY, > _GL_ATTRIBUTE_RELEASE

Re: [PATCH 3/7] backupfile: fix irealloc dependency

2024-10-29 Thread Collin Funk
Hi Paul, Paul Eggert writes: > diff --git a/modules/backupfile b/modules/backupfile > index b02cdc1cb1..7945c92b6e 100644 > --- a/modules/backupfile > +++ b/modules/backupfile > @@ -17,10 +17,10 @@ closedir > d-ino > fcntl-h > ialloc > +irealloc > memcmp > opendirat > readdir > -realloc-gn

[PATCH 3/3] malloc, realloc: sync from Autoconf master

2024-10-29 Thread Paul Eggert
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Sync from bleeding-edge Autoconf. All uses changed. --- ChangeLog | 5 + m4/eealloc.m4 | 8 +--- m4/malloc.m4 | 29 +++-- m4/realloc.m4 | 28 ++-- 4 files cha

[PATCH 1/3] realloc-posix: realloc (p, 0) yields nonnull

2024-10-29 Thread Paul Eggert
* lib/realloc.c: Include , not "xalloc-oversized.h". Use of xalloc_oversized replaced by ckd_add. (rpl_realloc) [!NEED_SANITIZED_REALLOC]: Treat realloc (p, 0) as if it were a realloc (p, 1) that never fails. That’s easier, reduces module dependencies, and better supports the future alloc-0-nonnull

[PATCH 2/3] malloc: fix recent doc bug for AIX 7.3

2024-10-29 Thread Paul Eggert
* doc/posix-functions/malloc.texi: Undo previous change, as _LINUX_SOURCE_COMPAT no longer affects malloc on AIX 7.3. It did affect it in AIX 7.1 but 7.1 is no longer supported. --- ChangeLog | 5 + doc/posix-functions/malloc.texi | 2 +- 2 files changed, 6 insertions(+),