Re: [PATCH] stdalign-tests: port to C23

2022-09-13 Thread Paul Eggert
On 9/13/22 15:19, Bruno Haible wrote: _Alignas is obsolescent? Although it's still in the standard as of draft C23, it is to some extent deprecated as it is no longer necessarily a keyword (it might be a macro). My guess is that it will be obsoleted in some future version of the standard, if

Re: [PATCH] stdalign-tests: port to C23

2022-09-13 Thread Bruno Haible
Paul Eggert wrote: > _Alignof, or _Alignas as they are obsolescent. _Alignas is obsolescent? Then we should better talk about 'alignas' instead. 2022-09-13 Bruno Haible Prefer talking about alignas than _Alignas. * m4/gnulib-common.m4 (gl_COMMON_BODY): Don't mention _Alignas

[PATCH] stdalign-tests: port to C23

2022-09-13 Thread Paul Eggert
* tests/test-stdalign.c: Do not test __alignas_is_defined, _Alignof, or _Alignas as they are obsolescent. Do not use __alignas_is_defined in C23 or later (or C++11 or later), as it’s removed in C23. --- ChangeLog | 8 doc/posix-headers/stdalign.texi | 12 ---