Re: Portability issues of inline on macOS with GCC11

2021-09-12 Thread Akim Demaille
> Le 13 sept. 2021 à 07:30, Bruno Haible a écrit : > > Akim Demaille wrote: >> The preprocessed source is >> >>> static [[__maybe_unused__]] void *xnrealloc (void *p, size_t n, size_t s) >>> __attribute__ ((__alloc_size__ (2, 3))); >>> static [[__maybe_unused__]] void * >>> xnrealloc (void *

[PATCH] stdint-tests: long long preproc on recent Sun C

2021-09-12 Thread Paul Eggert
* tests/test-stdint.c: Test long long preprocessor constants on Oracle Developer Studio 12.6, where they should work. --- ChangeLog | 6 ++ doc/posix-headers/stdint.texi | 6 -- m4/extern-inline.m4 | 3 ++- tests/test-func.c | 4 ++-- tests/test-st

Re: Portability issues of inline on macOS with GCC11

2021-09-12 Thread Bruno Haible
Akim Demaille wrote: > The preprocessed source is > > > static [[__maybe_unused__]] void *xnrealloc (void *p, size_t n, size_t s) > > __attribute__ ((__alloc_size__ (2, 3))); > > static [[__maybe_unused__]] void * > > xnrealloc (void *p, size_t n, size_t s) > > { > > return xreallocarray (p, n

Portability issues of inline on macOS with GCC11

2021-09-12 Thread Akim Demaille
Hi, If I try to update gnulib in Bison, I have the following errors using GCC 11.2.0 on macOS. > In file included from /Users/akim/src/gnu/bison/src/system.h:74, > from /Users/akim/src/gnu/bison/src/Sbitset.c:21: > /Users/akim/src/gnu/bison/lib/xalloc.h:139:1: error: 'maybe_unus

Re: timespec test failure on Linux/s390x

2021-09-12 Thread Bruno Haible
Paul Eggert wrote: > > I can't determine whether it's a GCC or a QEMU bug. > > Surely it is a QEMU bug, as QEMU isn't properly implementing the > z/Architecture Principles of Operation (POP). Thanks; I didn't know about this document. > Page 7-25 of the current > edition (SA22-7832-12) says th

Re: timespec test failure on Linux/s390x

2021-09-12 Thread Paul Eggert
On 9/12/21 8:28 AM, Bruno Haible wrote: I can't determine whether it's a GCC or a QEMU bug. Surely it is a QEMU bug, as QEMU isn't properly implementing the z/Architecture Principles of Operation (POP). Page 7-25 of the current edition (SA22-7832-12) says that the AGR instruction treats its o

Re: timespec test failure on Linux/s390x

2021-09-12 Thread Bruno Haible
Paul Eggert wrote: > That value of 'sum' is wrong; it should be most-negative value {tv_sec = > -9223372036854775808, tv_nsec = 0} because A and B are both that value, > and 'sum = timespec_add (a, b)' is supposed to be saturated addition. > > My guess is that timespec-add.c's line 49 'INT_ADD_W