Re: -Wno-error in CFLAGS for gnulib code?

2023-08-18 Thread Paul Eggert
On 8/17/23 20:07, Bruno Haible wrote: I suggest to add -Wno-error in $(GL_CFLAG_GNULIB_WARNINGS), and thus avoid FTBFS situations if some compiler warnings occur in gnulib code. Sounds good to me, thanks.

thrd: Work around thrd_join bug on AIX 7.3.1

2023-08-18 Thread Bruno Haible
On AIX 7.3.1, I see these two test failures: FAIL: test-thrd_create == ../../gltests/test-thrd_create.c:61: assertion 'ret == MAGIC' failed FAIL test-thrd_create (exit status: 134) FAIL: test-thrd_exit ../../gltests/test-thrd_exit.c:65: assertion 'ret ==

thrd: On AIX 7.1 and 7.2, override also thrd_exit

2023-08-18 Thread Bruno Haible
I just noticed that the AIX thrd_join workaround is incomplete: The exit code of the thread may not only be provided by a 'return' statement in the thread's main function, but alternatively as an argument to thread_exit(). Thus thread_exit must be overridden as well. Done through this patch, with

aligned_alloc: Fix test failure on AIX 7.3 with ibm-clang

2023-08-18 Thread Bruno Haible
On AIX 7.3.1, with ibm-clang as compiler, I see a unit test failure: FAIL: test-aligned_alloc ../../gltests/test-aligned_alloc.c:52: assertion 'aligned2_blocks[i] != NULL' failed FAIL test-aligned_alloc (exit status: 134) The problem here is that ibm-clang, with option

sys_socket: Fix compilation errors in C++ mode on AIX 7.3 with gcc

2023-08-18 Thread Bruno Haible
On AIX 7.3.1 with gcc, I see these compilation errors: ../gllib/sys/socket.h:874:1: error: conflicting declaration of 'int accept(int, sockaddr*, socklen_t*)' with 'C' linkage 874 | _GL_CXXALIASWARN (accept); | ^~~~ ... ../gllib/sys/socket.h:936:1: error: conflicting declarati

stddef: Don't unnecessarily override max_align_t on AIX 7.3 with gcc

2023-08-18 Thread Bruno Haible
On AIX 7.3.1, with gcc in 64-bit mode, I see many compilation errors like the following one: $ gmake memchr.o ... In file included from ./stddef.h:80, from ./string.h:55, from ../../gllib/memchr.c:30: /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/include/stddef.

deprecating the 'uptime' module

2023-08-18 Thread Bruno Haible
The 'uptime' module is no longer helpful for the coreutils 'uptime' program. So, we can deprecate it. 2023-08-18 Bruno Haible uptime: Deprecate. Suggested by Paul Eggert in . * modules/upt