[patch, testsuite] Remove superfluous -std={c99,gnu99} in libgomp.c

Jakub Jelinek jakub@redhat.com
Mon Jun 15 13:06:00 GMT 2015


On Sat, Jun 06, 2015 at 12:05:44AM +0200, Tom de Vries wrote:
> this patch removes a superfluous -std=c99 or -std=gnu99 setting in the
> libgomp/testsuite/libgomp.c testcases (and a superfluous -fopenmp setting in
> some cases as well).
> 
> The setting is superfluous because -std=gnu11 is the new default for C mode,
> which allows loop initial declaration.

I'd prefer to keep the -std=gnu99 or -std=c99, to make it clear there is
a C99+ requirement.  It will not hurt to have some testsuite coverage for
C99 anyway.
Feel free to change the dg-options into
/* { dg-additional-options "-std=gnu99" } */
that is fine.

	Jakub



More information about the Gcc-patches mailing list