On Mon, May 12, 2025 at 10:54:34AM +0000, Joseph Myers wrote:
> On Sun, 11 May 2025, Alejandro Colomar wrote:
> 
> > +/* { dg-options "-Wno-declaration-after-statement -Wno-pedantic -Wno-vla" 
> > } */
> 
> > +/* { dg-options "-Wno-pedantic -Wvla-parameter" } */
> 
> > +/* { dg-options "-Wno-declaration-after-statement -Wno-pedantic -Wno-vla" 
> > } */
> 
> Most of these options are suspect, considering they are the default.

Hi Joseph,

Thanks!  I don't remember where I got those from.  It was probably
pasted from whichever file I took to base my tests on, a year ago.  :)

> 
> The main tests should use -std=c2y -pedantic-errors, except for any tests 
> that specifically involve GNU extensions.  Then there should be separate 
> tests for the -pedantic handling for older C standard versions (-std=c23 
> -pedantic, -std=c23 -pedantic-errors, -std=c23 -pedantic-errors 
> -Wno-c23-c2y-compat, -std=c2y -pedantic-errors -Wc23-c2y-compat).

Thanks!  I've prepared that for v21.

Cheers,
Alex

> 
> -- 
> Joseph S. Myers
> josmy...@redhat.com
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature

Reply via email to