This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, testsuite] Remove superfluous -std={c99,gnu99} in libgomp.c
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tom de Vries <Tom_deVries at mentor dot com>
- Cc: gcc-patches at gnu dot org
- Date: Mon, 15 Jun 2015 14:55:17 +0200
- Subject: Re: [patch, testsuite] Remove superfluous -std={c99,gnu99} in libgomp.c
- Authentication-results: sourceware.org; auth=none
- References: <55721D38 dot 10508 at mentor dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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