Re: [PATCH] c: Diagnose unexpected va_start arguments in C23 [PR107980]

2024-12-05 Thread Joseph Myers
On Thu, 5 Dec 2024, Jakub Jelinek wrote: > 2024-12-05 Jakub Jelinek > > PR c/107980 > gcc/ > * ginclude/stdarg.h (va_start): For C23+ change parameters from > v, ... to just ... and define to __builtin_c23_va_start(__VA_ARGS__) > rather than __builtin_va_start(v, 0). >

[PATCH] c: Diagnose unexpected va_start arguments in C23 [PR107980]

2024-12-05 Thread Jakub Jelinek
Hi! va_start macro was changed in C23 from the C17 va_start (va_list ap, parmN) where parmN is the identifier of the last parameter into va_start (va_list ap, ...) where arguments after ap aren't evaluated. Late in the C23 development "If any additional arguments expand to include unbalanced paren