Hi Joseph,
On Mon, May 12, 2025 at 04:43:45PM +, Joseph Myers wrote:
> On Mon, 12 May 2025, Alejandro Colomar wrote:
>
> > + if (strcmp (xstr(countof), "_Alignas") != 0)
>
> countof should definitely not expand to _Alignas!
D'oh! :-)
> I don't recommend
> posting untested patches.
I s
On Mon, 12 May 2025, Alejandro Colomar wrote:
> + if (strcmp (xstr(countof), "_Alignas") != 0)
countof should definitely not expand to _Alignas! I don't recommend
posting untested patches.
--
Joseph S. Myers
josmy...@redhat.com
gcc/ChangeLog:
* Makefile.in (USER_H): Add .
* ginclude/stdcountof.h: Add countof macro.
gcc/testsuite/ChangeLog:
* gcc.dg/countof-stdcountof.c: Add tests for .
Signed-off-by: Alejandro Colomar
---
gcc/Makefile.in | 1 +
gcc/ginclude/stdcount