Commit 5c561fa9 by Tom de Vries Committed by Tom de Vries

Remove superfluous -fopenmp from libgomp testcases

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>

2017-09-28  Tom de Vries  <tom@codesourcery.com>

	* 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
parent 7d6206fe
2017-09-28 Tom de Vries <tom@codesourcery.com> 2017-09-28 Tom de Vries <tom@codesourcery.com>
* 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 <tom@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
vector_length(32) clause from acc parallel directive. vector_length(32) clause from acc parallel directive.
* testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same. * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
......
/* { dg-options "-fopenmp" } */
extern "C" void abort (void); extern "C" void abort (void);
#define M(x, y, z) O(x, y, z) #define M(x, y, z) O(x, y, z)
......
// { dg-do run } // { dg-do run }
// { dg-require-effective-target lto } // { dg-require-effective-target lto }
// { dg-options "-flto -g -fopenmp" } // { dg-options "-flto -g" }
int e = 5; int e = 5;
......
// { dg-do run } // { dg-do run }
// { dg-options "-O2 -fopenmp" } // { dg-options "-O2" }
#include "../libgomp.c/taskloop-1.c" #include "../libgomp.c/taskloop-1.c"
// { dg-do run } // { dg-do run }
// { dg-options "-O2 -fopenmp" } // { dg-options "-O2" }
#include "../libgomp.c/taskloop-3.c" #include "../libgomp.c/taskloop-3.c"
// { dg-do run } // { dg-do run }
// { dg-options "-O2 -fopenmp" } // { dg-options "-O2" }
#include "../libgomp.c/taskloop-4.c" #include "../libgomp.c/taskloop-4.c"
/* { dg-options "-std=gnu99 -fopenmp" } */ /* { dg-options "-std=gnu99" } */
extern void abort (void); extern void abort (void);
......
/* PR middle-end/66199 */ /* PR middle-end/66199 */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp" } */ /* { dg-options "-O2" } */
int u[1024], v[1024], w[1024]; int u[1024], v[1024], w[1024];
......
/* PR middle-end/66199 */ /* PR middle-end/66199 */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp" } */ /* { dg-options "-O2" } */
#pragma omp declare target #pragma omp declare target
int u[1024], v[1024], w[1024]; int u[1024], v[1024], w[1024];
......
/* PR middle-end/66199 */ /* PR middle-end/66199 */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp" } */ /* { dg-options "-O2" } */
#pragma omp declare target #pragma omp declare target
int u[1024], v[1024], w[1024]; int u[1024], v[1024], w[1024];
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp -std=c99" } */ /* { dg-options "-O2 -std=c99" } */
int q, r, e; int q, r, e;
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp -std=c99" } */ /* { dg-options "-O2 -std=c99" } */
int g; int g;
int a[1024]; int a[1024];
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fopenmp" } */ /* { dg-options "-O2" } */
int u[64], v; int u[64], v;
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -fcray-pointer" } ! { dg-options "-fcray-pointer" }
use iso_c_binding, only : c_ptr, c_ptrdiff_t, c_loc use iso_c_binding, only : c_ptr, c_ptrdiff_t, c_loc
interface interface
......
! { dg-options "-fopenmp" }
program condinc1 program condinc1
logical l logical l
l = .false. l = .false.
......
! { dg-options "-fopenmp" }
program condinc3 program condinc3
logical l logical l
l = .false. l = .false.
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -fcray-pointer" } ! { dg-options "-fcray-pointer" }
use omp_lib use omp_lib
integer :: a, b, c, p integer :: a, b, c, p
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -fcray-pointer" } ! { dg-options "-fcray-pointer" }
! { dg-require-effective-target tls_runtime } ! { dg-require-effective-target tls_runtime }
use omp_lib use omp_lib
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -fcray-pointer" } ! { dg-options "-fcray-pointer" }
use omp_lib use omp_lib
integer :: a, b, c, i, p integer :: a, b, c, i, p
......
C Test conditional compilation in fixed form if -fopenmp C Test conditional compilation in fixed form if -fopenmp
! { dg-options "-fopenmp" }
10 foo = 2 10 foo = 2
&56 &56
if (foo.ne.256) call abort if (foo.ne.256) call abort
......
! Test conditional compilation in free form if -fopenmp ! Test conditional compilation in free form if -fopenmp
! { dg-options "-fopenmp" }
10 foo = 2& 10 foo = 2&
&56 &56
if (foo.ne.256) call abort if (foo.ne.256) call abort
......
! PR middle-end/66199 ! PR middle-end/66199
! { dg-do run } ! { 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 integer :: u(1024), v(1024), w(1024), a, b, c, d, e, a1, b1, a2, b2, d1, d2
a = 1 a = 1
......
! PR middle-end/66199 ! PR middle-end/66199
! { dg-do run } ! { 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 integer :: u(1024), v(1024), w(1024), a, b, c, d, e, a1, b1, a2, b2, d1, d2
a = 1 a = 1
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -fcheck=recursion" } ! { dg-options "-fcheck=recursion" }
! !
! PR 42517: Bogus runtime error with -fopenmp -fcheck=recursion ! PR 42517: Bogus runtime error with -fopenmp -fcheck=recursion
! !
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp -ffree-line-length-160" } ! { dg-options "-ffree-line-length-160" }
module target2 module target2
contains contains
......
! { dg-do compile } ! { dg-do compile }
! { dg-options "-fopenmp" }
integer :: r integer :: r
r = 0 r = 0
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fopenmp" }
! !
! PR fortran/47886 ! PR fortran/47886
! !
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment