diff mbox

[testsuite] Remove -fopenmp in dg-options in libgomp.c

Message ID 55721E38.3060807@mentor.com
State New
Headers show

Commit Message

Tom de Vries June 5, 2015, 10:10 p.m. UTC
Hi,

this patch removes superfluous -fopenmp settings.

In the case of target-8.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.

OK for trunk?

Thanks,
- Tom

Comments

Jakub Jelinek June 15, 2015, 12:53 p.m. UTC | #1
On Sat, Jun 06, 2015 at 12:10:00AM +0200, Tom de Vries wrote:
> this patch removes superfluous -fopenmp settings.
> 
> In the case of target-8.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.
> 
> OK for trunk?
> 
> Thanks,
> - Tom

> Remove -fopenmp in dg-options in libgomp.c
> 
> 2015-06-05  Tom de Vries  <tom@codesourcery.com>
> 
> 	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
> 	in dg-options.
> 	* testsuite/libgomp.c/atomic-3.c: Same.
> 	* testsuite/libgomp.c/debug-1.c: Same.
> 	* testsuite/libgomp.c/nqueens-1.c: Same.
> 	* testsuite/libgomp.c/pr26171.c: Same.
> 	* testsuite/libgomp.c/pr48591.c: Same.
> 	* testsuite/libgomp.c/pr64824.c: Same.
> 	* testsuite/libgomp.c/pr64868.c: Same.
> 	* testsuite/libgomp.c/pr66133.c: Same.
> 	* testsuite/libgomp.c/pr66199-1.c: Same.
> 	* testsuite/libgomp.c/pr66199-2.c: Same.
> 	* testsuite/libgomp.c/target-8.c: Same.

This is ok.

	Jakub
diff mbox

Patch

Remove -fopenmp in dg-options in libgomp.c

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

	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
	in dg-options.
	* testsuite/libgomp.c/atomic-3.c: Same.
	* testsuite/libgomp.c/debug-1.c: Same.
	* testsuite/libgomp.c/nqueens-1.c: Same.
	* testsuite/libgomp.c/pr26171.c: Same.
	* testsuite/libgomp.c/pr48591.c: Same.
	* testsuite/libgomp.c/pr64824.c: Same.
	* testsuite/libgomp.c/pr64868.c: Same.
	* testsuite/libgomp.c/pr66133.c: Same.
	* testsuite/libgomp.c/pr66199-1.c: Same.
	* testsuite/libgomp.c/pr66199-2.c: Same.
	* testsuite/libgomp.c/target-8.c: Same.
---
 libgomp/testsuite/libgomp.c/atomic-18.c | 1 -
 libgomp/testsuite/libgomp.c/atomic-3.c  | 2 +-
 libgomp/testsuite/libgomp.c/debug-1.c   | 2 +-
 libgomp/testsuite/libgomp.c/nqueens-1.c | 1 -
 libgomp/testsuite/libgomp.c/pr26171.c   | 2 +-
 libgomp/testsuite/libgomp.c/pr48591.c   | 2 +-
 libgomp/testsuite/libgomp.c/pr64824.c   | 1 -
 libgomp/testsuite/libgomp.c/pr64868.c   | 1 -
 libgomp/testsuite/libgomp.c/pr66133.c   | 1 -
 libgomp/testsuite/libgomp.c/pr66199-1.c | 1 -
 libgomp/testsuite/libgomp.c/pr66199-2.c | 1 -
 libgomp/testsuite/libgomp.c/target-8.c  | 1 -
 12 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/libgomp/testsuite/libgomp.c/atomic-18.c b/libgomp/testsuite/libgomp.c/atomic-18.c
index bd048c1..4f7361e 100644
--- a/libgomp/testsuite/libgomp.c/atomic-18.c
+++ b/libgomp/testsuite/libgomp.c/atomic-18.c
@@ -1,6 +1,5 @@ 
 /* PR c/64824 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 void
 f1 (void)
diff --git a/libgomp/testsuite/libgomp.c/atomic-3.c b/libgomp/testsuite/libgomp.c/atomic-3.c
index 5b8fdc1..818242d 100644
--- a/libgomp/testsuite/libgomp.c/atomic-3.c
+++ b/libgomp/testsuite/libgomp.c/atomic-3.c
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-options "-fopenmp -O0" } */
+/* { dg-options "-O0" } */
 
 #include <omp.h>
 #include <stdlib.h>
diff --git a/libgomp/testsuite/libgomp.c/debug-1.c b/libgomp/testsuite/libgomp.c/debug-1.c
index 09bcf7f..8fa9b54 100644
--- a/libgomp/testsuite/libgomp.c/debug-1.c
+++ b/libgomp/testsuite/libgomp.c/debug-1.c
@@ -1,6 +1,6 @@ 
 /* PR debug/36617 */
 /* { dg-do run } */
-/* { dg-options "-g -fopenmp -O0" } */
+/* { dg-options "-g -O0" } */
 
 int
 f1 (void)
diff --git a/libgomp/testsuite/libgomp.c/nqueens-1.c b/libgomp/testsuite/libgomp.c/nqueens-1.c
index 9742b7a..db5517f 100644
--- a/libgomp/testsuite/libgomp.c/nqueens-1.c
+++ b/libgomp/testsuite/libgomp.c/nqueens-1.c
@@ -1,5 +1,4 @@ 
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 /* { dg-require-effective-target tls_runtime } */
 
 #include <omp.h>
diff --git a/libgomp/testsuite/libgomp.c/pr26171.c b/libgomp/testsuite/libgomp.c/pr26171.c
index eacc9a7..322a0c7 100644
--- a/libgomp/testsuite/libgomp.c/pr26171.c
+++ b/libgomp/testsuite/libgomp.c/pr26171.c
@@ -1,6 +1,6 @@ 
 /* PR c/26171 */
 /* { dg-do run } */
-/* { dg-options "-fopenmp" } */
+/* { dg-options "-O0" } */
 /* { dg-require-effective-target tls_runtime } */
 
 int thrv = 0;
diff --git a/libgomp/testsuite/libgomp.c/pr48591.c b/libgomp/testsuite/libgomp.c/pr48591.c
index 8df97f1..2f617af 100644
--- a/libgomp/testsuite/libgomp.c/pr48591.c
+++ b/libgomp/testsuite/libgomp.c/pr48591.c
@@ -1,6 +1,6 @@ 
 /* PR middle-end/48591 */
 /* { dg-do run { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* ia64-*-linux* x86_64-*-freebsd* } } */
-/* { dg-options "-fopenmp" } */
+/* { dg-options "-O0" } */
 
 extern void abort (void);
 
diff --git a/libgomp/testsuite/libgomp.c/pr64824.c b/libgomp/testsuite/libgomp.c/pr64824.c
index 544d0b0..b39675b 100644
--- a/libgomp/testsuite/libgomp.c/pr64824.c
+++ b/libgomp/testsuite/libgomp.c/pr64824.c
@@ -1,6 +1,5 @@ 
 /* PR c/64824 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 int
 main ()
diff --git a/libgomp/testsuite/libgomp.c/pr64868.c b/libgomp/testsuite/libgomp.c/pr64868.c
index acdf998..f93caf2 100644
--- a/libgomp/testsuite/libgomp.c/pr64868.c
+++ b/libgomp/testsuite/libgomp.c/pr64868.c
@@ -1,6 +1,5 @@ 
 /* PR c/64868 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 float f = 2.0f;
 double d = 4.0;
diff --git a/libgomp/testsuite/libgomp.c/pr66133.c b/libgomp/testsuite/libgomp.c/pr66133.c
index e98e5aa..90685cd 100644
--- a/libgomp/testsuite/libgomp.c/pr66133.c
+++ b/libgomp/testsuite/libgomp.c/pr66133.c
@@ -1,6 +1,5 @@ 
 /* PR middle-end/66133 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/libgomp/testsuite/libgomp.c/pr66199-1.c b/libgomp/testsuite/libgomp.c/pr66199-1.c
index 6fd9f87..20482a4 100644
--- a/libgomp/testsuite/libgomp.c/pr66199-1.c
+++ b/libgomp/testsuite/libgomp.c/pr66199-1.c
@@ -1,6 +1,5 @@ 
 /* PR middle-end/66199 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 int u[1024], v[1024], w[1024];
 
diff --git a/libgomp/testsuite/libgomp.c/pr66199-2.c b/libgomp/testsuite/libgomp.c/pr66199-2.c
index dbcd701..ddb79de 100644
--- a/libgomp/testsuite/libgomp.c/pr66199-2.c
+++ b/libgomp/testsuite/libgomp.c/pr66199-2.c
@@ -1,6 +1,5 @@ 
 /* PR middle-end/66199 */
 /* { dg-do run } */
-/* { dg-options "-O2 -fopenmp" } */
 
 #pragma omp declare target
 int u[1024], v[1024], w[1024];
diff --git a/libgomp/testsuite/libgomp.c/target-8.c b/libgomp/testsuite/libgomp.c/target-8.c
index 3508457..5fe0db9 100644
--- a/libgomp/testsuite/libgomp.c/target-8.c
+++ b/libgomp/testsuite/libgomp.c/target-8.c
@@ -1,5 +1,4 @@ 
 /* { dg-do run } */
-/* { dg-options "-fopenmp" } */
 
 void
 foo (int *p)
-- 
1.9.1