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]

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


Hi,

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.

In a few cases (for-{1,2,3}.c, pr35625.c) we remove the whole dg-options line which did not have an -On setting, which means the optimization level at which the testcase compiles is changed from -O0 to the default -O2.

Tested with a c build. for-2.c fails, filed as PR66429 - 'ICE in expand_GOMP_SIMD_LAST_LANE'.

OK for trunk?

Thanks,
- Tom
Remove superfluous -std={c99,gnu99} in libgomp.c

2015-06-05  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.c/collapse-3.c: Remove superfluous dg-options line
	with -std={gnu99,c99}.
	* testsuite/libgomp.c/for-1.c: Same.
	* testsuite/libgomp.c/for-2.c: Same.
	* testsuite/libgomp.c/for-3.c: Same.
	* testsuite/libgomp.c/pr35625.c: Same.
	* testsuite/libgomp.c/pr39154.c: Same.
	* testsuite/libgomp.c/simd-16.c: Same.
	* testsuite/libgomp.c/simd-17.c: Same.
---
 libgomp/testsuite/libgomp.c/collapse-3.c | 1 -
 libgomp/testsuite/libgomp.c/for-1.c      | 2 --
 libgomp/testsuite/libgomp.c/for-2.c      | 2 --
 libgomp/testsuite/libgomp.c/for-3.c      | 2 --
 libgomp/testsuite/libgomp.c/pr35625.c    | 1 -
 libgomp/testsuite/libgomp.c/pr39154.c    | 1 -
 libgomp/testsuite/libgomp.c/simd-16.c    | 1 -
 libgomp/testsuite/libgomp.c/simd-17.c    | 1 -
 8 files changed, 11 deletions(-)

diff --git a/libgomp/testsuite/libgomp.c/collapse-3.c b/libgomp/testsuite/libgomp.c/collapse-3.c
index 4674f83..d780ab9 100644
--- a/libgomp/testsuite/libgomp.c/collapse-3.c
+++ b/libgomp/testsuite/libgomp.c/collapse-3.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-options "-O2 -std=gnu99" } */
 
 #include <string.h>
 #include <stdlib.h>
diff --git a/libgomp/testsuite/libgomp.c/for-1.c b/libgomp/testsuite/libgomp.c/for-1.c
index e702453..e0b9560 100644
--- a/libgomp/testsuite/libgomp.c/for-1.c
+++ b/libgomp/testsuite/libgomp.c/for-1.c
@@ -1,5 +1,3 @@
-/* { dg-options "-std=gnu99 -fopenmp" } */
-
 extern void abort (void);
 
 #define M(x, y, z) O(x, y, z)
diff --git a/libgomp/testsuite/libgomp.c/for-2.c b/libgomp/testsuite/libgomp.c/for-2.c
index ae81008..cc64a52 100644
--- a/libgomp/testsuite/libgomp.c/for-2.c
+++ b/libgomp/testsuite/libgomp.c/for-2.c
@@ -1,5 +1,3 @@
-/* { dg-options "-std=gnu99 -fopenmp" } */
-
 extern void abort (void);
 
 #define M(x, y, z) O(x, y, z)
diff --git a/libgomp/testsuite/libgomp.c/for-3.c b/libgomp/testsuite/libgomp.c/for-3.c
index 06cbf4f..f313f86 100644
--- a/libgomp/testsuite/libgomp.c/for-3.c
+++ b/libgomp/testsuite/libgomp.c/for-3.c
@@ -1,5 +1,3 @@
-/* { dg-options "-std=gnu99 -fopenmp" } */
-
 extern void abort ();
 
 #define M(x, y, z) O(x, y, z)
diff --git a/libgomp/testsuite/libgomp.c/pr35625.c b/libgomp/testsuite/libgomp.c/pr35625.c
index f2978f9..c60f719 100644
--- a/libgomp/testsuite/libgomp.c/pr35625.c
+++ b/libgomp/testsuite/libgomp.c/pr35625.c
@@ -1,6 +1,5 @@
 /* PR libgomp/35625 */
 /* { dg-do run } */
-/* { dg-options "-std=c99" } */
 
 int
 main (void)
diff --git a/libgomp/testsuite/libgomp.c/pr39154.c b/libgomp/testsuite/libgomp.c/pr39154.c
index 5a4c89e..0abdb27 100644
--- a/libgomp/testsuite/libgomp.c/pr39154.c
+++ b/libgomp/testsuite/libgomp.c/pr39154.c
@@ -1,6 +1,5 @@
 /* PR middle-end/39154 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -std=gnu99" } */
 
 extern void abort (void);
 
diff --git a/libgomp/testsuite/libgomp.c/simd-16.c b/libgomp/testsuite/libgomp.c/simd-16.c
index c8c29c7..4a4e811 100644
--- a/libgomp/testsuite/libgomp.c/simd-16.c
+++ b/libgomp/testsuite/libgomp.c/simd-16.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-options "-O2 -std=c99" } */
 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
 
diff --git a/libgomp/testsuite/libgomp.c/simd-17.c b/libgomp/testsuite/libgomp.c/simd-17.c
index 136e6e6..6556cbd 100644
--- a/libgomp/testsuite/libgomp.c/simd-17.c
+++ b/libgomp/testsuite/libgomp.c/simd-17.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-options "-O2 -std=c99" } */
 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
 
-- 
1.9.1


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