From: Tom de Vries Date: Thu, 28 Sep 2017 09:32:00 +0000 (+0000) Subject: Remove superfluous -fopenmp from libgomp testcases X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c561fa938924b5d654447dd51f9ae0905cd3c65;p=gcc.git Remove superfluous -fopenmp from libgomp testcases Reviewed-by: Thomas Schwinge 2017-09-28 Tom de Vries * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option setting. * testsuite/libgomp.c++/pr69393.C: Same. * testsuite/libgomp.c++/taskloop-1.C: Same. * testsuite/libgomp.c++/taskloop-3.C: Same. * testsuite/libgomp.c++/taskloop-4.C: Same. * testsuite/libgomp.c/for-4.c: Same. * testsuite/libgomp.c/pr66199-3.c: Same. * testsuite/libgomp.c/pr66199-4.c: Same. * testsuite/libgomp.c/pr66199-6.c: Same. * testsuite/libgomp.c/taskloop-1.c: Same. * testsuite/libgomp.c/taskloop-3.c: Same. * testsuite/libgomp.c/taskloop-4.c: Same. * testsuite/libgomp.fortran/aligned1.f03: Same. * testsuite/libgomp.fortran/condinc1.f: Same. * testsuite/libgomp.fortran/condinc3.f90: Same. * testsuite/libgomp.fortran/crayptr1.f90: Same. * testsuite/libgomp.fortran/crayptr2.f90: Same. * testsuite/libgomp.fortran/crayptr3.f90: Same. * testsuite/libgomp.fortran/omp_cond1.f: Same. * testsuite/libgomp.fortran/omp_cond3.F90: Same. * testsuite/libgomp.fortran/pr66199-1.f90: Same. * testsuite/libgomp.fortran/pr66199-2.f90: Same. * testsuite/libgomp.fortran/recursion1.f90: Same. * testsuite/libgomp.fortran/target2.f90: Same. * testsuite/libgomp.fortran/target5.f90: Same. * testsuite/libgomp.fortran/task3.f90: Same. From-SVN: r253250 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 4f8b4b48d6b..c3471e8934d 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,33 @@ +2017-09-28 Tom de Vries + + * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option + setting. + * testsuite/libgomp.c++/pr69393.C: Same. + * testsuite/libgomp.c++/taskloop-1.C: Same. + * testsuite/libgomp.c++/taskloop-3.C: Same. + * testsuite/libgomp.c++/taskloop-4.C: Same. + * testsuite/libgomp.c/for-4.c: Same. + * testsuite/libgomp.c/pr66199-3.c: Same. + * testsuite/libgomp.c/pr66199-4.c: Same. + * testsuite/libgomp.c/pr66199-6.c: Same. + * testsuite/libgomp.c/taskloop-1.c: Same. + * testsuite/libgomp.c/taskloop-3.c: Same. + * testsuite/libgomp.c/taskloop-4.c: Same. + * testsuite/libgomp.fortran/aligned1.f03: Same. + * testsuite/libgomp.fortran/condinc1.f: Same. + * testsuite/libgomp.fortran/condinc3.f90: Same. + * testsuite/libgomp.fortran/crayptr1.f90: Same. + * testsuite/libgomp.fortran/crayptr2.f90: Same. + * testsuite/libgomp.fortran/crayptr3.f90: Same. + * testsuite/libgomp.fortran/omp_cond1.f: Same. + * testsuite/libgomp.fortran/omp_cond3.F90: Same. + * testsuite/libgomp.fortran/pr66199-1.f90: Same. + * testsuite/libgomp.fortran/pr66199-2.f90: Same. + * testsuite/libgomp.fortran/recursion1.f90: Same. + * testsuite/libgomp.fortran/target2.f90: Same. + * testsuite/libgomp.fortran/target5.f90: Same. + * testsuite/libgomp.fortran/task3.f90: Same. + 2017-09-28 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove diff --git a/libgomp/testsuite/libgomp.c++/for-12.C b/libgomp/testsuite/libgomp.c++/for-12.C index ea32192e45d..295b12f9628 100644 --- a/libgomp/testsuite/libgomp.c++/for-12.C +++ b/libgomp/testsuite/libgomp.c++/for-12.C @@ -1,5 +1,3 @@ -/* { dg-options "-fopenmp" } */ - extern "C" void abort (void); #define M(x, y, z) O(x, y, z) diff --git a/libgomp/testsuite/libgomp.c++/pr69393.C b/libgomp/testsuite/libgomp.c++/pr69393.C index e3f0de19e3e..02605e0ef0e 100644 --- a/libgomp/testsuite/libgomp.c++/pr69393.C +++ b/libgomp/testsuite/libgomp.c++/pr69393.C @@ -1,6 +1,6 @@ // { dg-do run } // { dg-require-effective-target lto } -// { dg-options "-flto -g -fopenmp" } +// { dg-options "-flto -g" } int e = 5; diff --git a/libgomp/testsuite/libgomp.c++/taskloop-1.C b/libgomp/testsuite/libgomp.c++/taskloop-1.C index 66f8e0b1d7c..7fc6e4652f0 100644 --- a/libgomp/testsuite/libgomp.c++/taskloop-1.C +++ b/libgomp/testsuite/libgomp.c++/taskloop-1.C @@ -1,4 +1,4 @@ // { dg-do run } -// { dg-options "-O2 -fopenmp" } +// { dg-options "-O2" } #include "../libgomp.c/taskloop-1.c" diff --git a/libgomp/testsuite/libgomp.c++/taskloop-3.C b/libgomp/testsuite/libgomp.c++/taskloop-3.C index bfd793c1c58..c08a0451f5a 100644 --- a/libgomp/testsuite/libgomp.c++/taskloop-3.C +++ b/libgomp/testsuite/libgomp.c++/taskloop-3.C @@ -1,4 +1,4 @@ // { dg-do run } -// { dg-options "-O2 -fopenmp" } +// { dg-options "-O2" } #include "../libgomp.c/taskloop-3.c" diff --git a/libgomp/testsuite/libgomp.c++/taskloop-4.C b/libgomp/testsuite/libgomp.c++/taskloop-4.C index 937cfcc0029..3783717b556 100644 --- a/libgomp/testsuite/libgomp.c++/taskloop-4.C +++ b/libgomp/testsuite/libgomp.c++/taskloop-4.C @@ -1,4 +1,4 @@ // { dg-do run } -// { dg-options "-O2 -fopenmp" } +// { dg-options "-O2" } #include "../libgomp.c/taskloop-4.c" diff --git a/libgomp/testsuite/libgomp.c/for-4.c b/libgomp/testsuite/libgomp.c/for-4.c index ef5465e1e76..14f900b5c43 100644 --- a/libgomp/testsuite/libgomp.c/for-4.c +++ b/libgomp/testsuite/libgomp.c/for-4.c @@ -1,4 +1,4 @@ -/* { dg-options "-std=gnu99 -fopenmp" } */ +/* { dg-options "-std=gnu99" } */ extern void abort (void); diff --git a/libgomp/testsuite/libgomp.c/pr66199-3.c b/libgomp/testsuite/libgomp.c/pr66199-3.c index fe0ccb47197..ffe28589933 100644 --- a/libgomp/testsuite/libgomp.c/pr66199-3.c +++ b/libgomp/testsuite/libgomp.c/pr66199-3.c @@ -1,6 +1,6 @@ /* PR middle-end/66199 */ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ +/* { dg-options "-O2" } */ int u[1024], v[1024], w[1024]; diff --git a/libgomp/testsuite/libgomp.c/pr66199-4.c b/libgomp/testsuite/libgomp.c/pr66199-4.c index a9b1bb8a59e..6ffa2e532bf 100644 --- a/libgomp/testsuite/libgomp.c/pr66199-4.c +++ b/libgomp/testsuite/libgomp.c/pr66199-4.c @@ -1,6 +1,6 @@ /* PR middle-end/66199 */ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ +/* { dg-options "-O2" } */ #pragma omp declare target int u[1024], v[1024], w[1024]; diff --git a/libgomp/testsuite/libgomp.c/pr66199-6.c b/libgomp/testsuite/libgomp.c/pr66199-6.c index 6790f7dc270..14f8610eb61 100644 --- a/libgomp/testsuite/libgomp.c/pr66199-6.c +++ b/libgomp/testsuite/libgomp.c/pr66199-6.c @@ -1,6 +1,6 @@ /* PR middle-end/66199 */ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ +/* { dg-options "-O2" } */ #pragma omp declare target int u[1024], v[1024], w[1024]; diff --git a/libgomp/testsuite/libgomp.c/taskloop-1.c b/libgomp/testsuite/libgomp.c/taskloop-1.c index 21551f2950c..edc70584c1a 100644 --- a/libgomp/testsuite/libgomp.c/taskloop-1.c +++ b/libgomp/testsuite/libgomp.c/taskloop-1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp -std=c99" } */ +/* { dg-options "-O2 -std=c99" } */ int q, r, e; diff --git a/libgomp/testsuite/libgomp.c/taskloop-3.c b/libgomp/testsuite/libgomp.c/taskloop-3.c index 5356d7f0251..9c8c49c8da4 100644 --- a/libgomp/testsuite/libgomp.c/taskloop-3.c +++ b/libgomp/testsuite/libgomp.c/taskloop-3.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp -std=c99" } */ +/* { dg-options "-O2 -std=c99" } */ int g; int a[1024]; diff --git a/libgomp/testsuite/libgomp.c/taskloop-4.c b/libgomp/testsuite/libgomp.c/taskloop-4.c index a69be19c9c2..4ac1b5a3751 100644 --- a/libgomp/testsuite/libgomp.c/taskloop-4.c +++ b/libgomp/testsuite/libgomp.c/taskloop-4.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ +/* { dg-options "-O2" } */ int u[64], v; diff --git a/libgomp/testsuite/libgomp.fortran/aligned1.f03 b/libgomp/testsuite/libgomp.fortran/aligned1.f03 index 67a9ab40423..2db03e13058 100644 --- a/libgomp/testsuite/libgomp.fortran/aligned1.f03 +++ b/libgomp/testsuite/libgomp.fortran/aligned1.f03 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -fcray-pointer" } +! { dg-options "-fcray-pointer" } use iso_c_binding, only : c_ptr, c_ptrdiff_t, c_loc interface diff --git a/libgomp/testsuite/libgomp.fortran/condinc1.f b/libgomp/testsuite/libgomp.fortran/condinc1.f index d94fe8d0fb1..6d056355d8a 100644 --- a/libgomp/testsuite/libgomp.fortran/condinc1.f +++ b/libgomp/testsuite/libgomp.fortran/condinc1.f @@ -1,4 +1,3 @@ -! { dg-options "-fopenmp" } program condinc1 logical l l = .false. diff --git a/libgomp/testsuite/libgomp.fortran/condinc3.f90 b/libgomp/testsuite/libgomp.fortran/condinc3.f90 index 16b937a0afb..7c24303e4b4 100644 --- a/libgomp/testsuite/libgomp.fortran/condinc3.f90 +++ b/libgomp/testsuite/libgomp.fortran/condinc3.f90 @@ -1,4 +1,3 @@ - ! { dg-options "-fopenmp" } program condinc3 logical l l = .false. diff --git a/libgomp/testsuite/libgomp.fortran/crayptr1.f90 b/libgomp/testsuite/libgomp.fortran/crayptr1.f90 index 57c59f71f9f..fb9495e7d7a 100644 --- a/libgomp/testsuite/libgomp.fortran/crayptr1.f90 +++ b/libgomp/testsuite/libgomp.fortran/crayptr1.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -fcray-pointer" } +! { dg-options "-fcray-pointer" } use omp_lib integer :: a, b, c, p diff --git a/libgomp/testsuite/libgomp.fortran/crayptr2.f90 b/libgomp/testsuite/libgomp.fortran/crayptr2.f90 index c88cc7ab884..7e69b87dfa5 100644 --- a/libgomp/testsuite/libgomp.fortran/crayptr2.f90 +++ b/libgomp/testsuite/libgomp.fortran/crayptr2.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -fcray-pointer" } +! { dg-options "-fcray-pointer" } ! { dg-require-effective-target tls_runtime } use omp_lib diff --git a/libgomp/testsuite/libgomp.fortran/crayptr3.f90 b/libgomp/testsuite/libgomp.fortran/crayptr3.f90 index 9777c6b22cc..5b3de656c4a 100644 --- a/libgomp/testsuite/libgomp.fortran/crayptr3.f90 +++ b/libgomp/testsuite/libgomp.fortran/crayptr3.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -fcray-pointer" } +! { dg-options "-fcray-pointer" } use omp_lib integer :: a, b, c, i, p diff --git a/libgomp/testsuite/libgomp.fortran/omp_cond1.f b/libgomp/testsuite/libgomp.fortran/omp_cond1.f index b557d908003..f51e868aa38 100644 --- a/libgomp/testsuite/libgomp.fortran/omp_cond1.f +++ b/libgomp/testsuite/libgomp.fortran/omp_cond1.f @@ -1,5 +1,4 @@ C Test conditional compilation in fixed form if -fopenmp -! { dg-options "-fopenmp" } 10 foo = 2 &56 if (foo.ne.256) call abort diff --git a/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 b/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 index 6c4e36e2293..fe8c783c6ab 100644 --- a/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 +++ b/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 @@ -1,5 +1,4 @@ ! Test conditional compilation in free form if -fopenmp -! { dg-options "-fopenmp" } 10 foo = 2& &56 if (foo.ne.256) call abort diff --git a/libgomp/testsuite/libgomp.fortran/pr66199-1.f90 b/libgomp/testsuite/libgomp.fortran/pr66199-1.f90 index 0cd232f3e14..55ad6277307 100644 --- a/libgomp/testsuite/libgomp.fortran/pr66199-1.f90 +++ b/libgomp/testsuite/libgomp.fortran/pr66199-1.f90 @@ -1,6 +1,6 @@ ! PR middle-end/66199 ! { dg-do run } -! { dg-options "-O2 -fopenmp" } +! { dg-options "-O2" } integer :: u(1024), v(1024), w(1024), a, b, c, d, e, a1, b1, a2, b2, d1, d2 a = 1 diff --git a/libgomp/testsuite/libgomp.fortran/pr66199-2.f90 b/libgomp/testsuite/libgomp.fortran/pr66199-2.f90 index e17ab96c7dc..0cc0fa5097f 100644 --- a/libgomp/testsuite/libgomp.fortran/pr66199-2.f90 +++ b/libgomp/testsuite/libgomp.fortran/pr66199-2.f90 @@ -1,6 +1,6 @@ ! PR middle-end/66199 ! { dg-do run } -! { dg-options "-O2 -fopenmp" } +! { dg-options "-O2" } integer :: u(1024), v(1024), w(1024), a, b, c, d, e, a1, b1, a2, b2, d1, d2 a = 1 diff --git a/libgomp/testsuite/libgomp.fortran/recursion1.f90 b/libgomp/testsuite/libgomp.fortran/recursion1.f90 index 35cb8786e09..0cae26173f6 100644 --- a/libgomp/testsuite/libgomp.fortran/recursion1.f90 +++ b/libgomp/testsuite/libgomp.fortran/recursion1.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -fcheck=recursion" } +! { dg-options "-fcheck=recursion" } ! ! PR 42517: Bogus runtime error with -fopenmp -fcheck=recursion ! diff --git a/libgomp/testsuite/libgomp.fortran/target2.f90 b/libgomp/testsuite/libgomp.fortran/target2.f90 index 42f704f2bb3..40b7b0b985b 100644 --- a/libgomp/testsuite/libgomp.fortran/target2.f90 +++ b/libgomp/testsuite/libgomp.fortran/target2.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-fopenmp -ffree-line-length-160" } +! { dg-options "-ffree-line-length-160" } module target2 contains diff --git a/libgomp/testsuite/libgomp.fortran/target5.f90 b/libgomp/testsuite/libgomp.fortran/target5.f90 index c46faf226f6..4aad88e89d8 100644 --- a/libgomp/testsuite/libgomp.fortran/target5.f90 +++ b/libgomp/testsuite/libgomp.fortran/target5.f90 @@ -1,5 +1,4 @@ ! { dg-do compile } -! { dg-options "-fopenmp" } integer :: r r = 0 diff --git a/libgomp/testsuite/libgomp.fortran/task3.f90 b/libgomp/testsuite/libgomp.fortran/task3.f90 index 30ff9803ea2..83b0e9f8163 100644 --- a/libgomp/testsuite/libgomp.fortran/task3.f90 +++ b/libgomp/testsuite/libgomp.fortran/task3.f90 @@ -1,5 +1,4 @@ ! { dg-do run } -! { dg-options "-fopenmp" } ! ! PR fortran/47886 !