This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]