strtol, strtoll, strtoul, strtoull: Make ISO C 23 compliant

2023-03-16 Thread Bruno Haible
ISO C 23 § 7.24.1.7 in combination with § 6.4.4.1 specifies that strtol, strtoll, strtoul, strtoull need to accept binary integer syntax as input, e.g. "0b101010" for 42. This patch implements it, and augments the unit tests accordingly. 2023-03-16 Bruno Haible strtol, strtoll, strto

timegm: Document under ISO C and POSIX substitutes

2023-03-16 Thread Bruno Haible
Now that ISO C 23 has added the 'timegm' function, it needs to be documented in a different section of the Gnulib manual. 2023-03-16 Bruno Haible timegm: Document under ISO C and POSIX substitutes. * doc/posix-functions/timegm.texi: Renamed from doc/glibc-functions/timegm.tex

Re: nstrftime.c fails to build due to memset overflow

2023-03-16 Thread William Bader
> The goal should not be to pacify compilers' false alarms. The goal should be > to have code that works correctly, is easy to understand, is efficient, etc. In my personal code, when gcc complains about an uninitialized variable, even if the code is correct, I usually either add an initializati

stddef: Fix a compilation error on AIX 7.2 with xlclang

2023-03-16 Thread Bruno Haible
On AIX 7.2 with xlclang, I see this compilation error: xlclang -q64 -qthreaded -qtls -std=gnu11 -DHAVE_CONFIG_H -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/home/haible/prefix64/i

stddef: Define 'unreachable', for ISO C 23 compliance

2023-03-16 Thread Bruno Haible
ISO C 23 § 7.21.1 requires that implements 'unreachable'. This patch does it. 2023-03-16 Bruno Haible stddef: Define 'unreachable', for ISO C 23 compliance. * lib/verify.h (_GL_HAS_BUILTIN_UNREACHABLE): Don't define if already defined. * lib/stddef.in.h (_GL_

Re: nstrftime.c fails to build due to memset overflow

2023-03-16 Thread Marcus Müller
Hi Bruno, On 16.03.23 04:46, Bruno Haible wrote: Apparently Paul and you have different ways of reading code, which leads to different measures of "readability". You two could keep contradicting each other eternally; that's not fruitful. I don't intend to do that :) Paul seems to be the more exp

Re: nstrftime.c fails to build due to memset overflow

2023-03-16 Thread Marcus Müller
Hey Paul, I think we're in agreement, even though I've been in the situation that the compiler warning me about unitialized variable usage has saved me a lot of headache – and maybe that's why I'm more sympathetic to making the compiler happy in such isolated circumstances. We both would like t

RE: GNU lib - z/OS thread related fix

2023-03-16 Thread Harithamma D
Hi Bruno, Thank you for the quick and detailed response. It helped me. Yes, there was a local modification which triggered this issue. I fixed it and m4 is building successfully. Thanks again for all the help. Regards, Haritha From: Bruno Haible Date: Saturday, 11 March 2023 at 12:09 AM To: b