mirror of git://gcc.gnu.org/git/gcc.git
[hsa testsuite] Suppress hsa warnings in compiler gomp tests
2016-03-07 Martin Jambor <mjambor@suse.cz> * c-c++-common/gomp/clauses-1.c: Remove dg-options. * c-c++-common/gomp/if-1.c: Likewise. * c-c++-common/gomp/pr61486-2.c: Likewise. * c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp to dg-additional-options. * g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests. * g++/gomp/target-teams-1.c: Likewise. * gcc.dg/gomp/gomp.exp: Likewise. * gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to dg-additional-options. * gfortran.dg/gomp/gomp.exp: Likewise. * gfortran.dg/gomp/target1.f90: Remove dg-options. * gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to dg-additional-options. * gfortran.dg/gomp/target3.f90: Remove dg-options. From-SVN: r234044
This commit is contained in:
parent
f86e631e8b
commit
b4e9f2aa1c
|
|
@ -1,3 +1,21 @@
|
||||||
|
2016-03-07 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
|
* c-c++-common/gomp/clauses-1.c: Remove dg-options.
|
||||||
|
* c-c++-common/gomp/if-1.c: Likewise.
|
||||||
|
* c-c++-common/gomp/pr61486-2.c: Likewise.
|
||||||
|
* c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp
|
||||||
|
to dg-additional-options.
|
||||||
|
* g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests.
|
||||||
|
* g++/gomp/target-teams-1.c: Likewise.
|
||||||
|
* gcc.dg/gomp/gomp.exp: Likewise.
|
||||||
|
* gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to
|
||||||
|
dg-additional-options.
|
||||||
|
* gfortran.dg/gomp/gomp.exp: Likewise.
|
||||||
|
* gfortran.dg/gomp/target1.f90: Remove dg-options.
|
||||||
|
* gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to
|
||||||
|
dg-additional-options.
|
||||||
|
* gfortran.dg/gomp/target3.f90: Remove dg-options.
|
||||||
|
|
||||||
2016-03-07 Martin Jambor <mjambor@suse.cz>
|
2016-03-07 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
* lib/target-supports.exp (check_effective_target_offload_hsa): New.
|
* lib/target-supports.exp (check_effective_target_offload_hsa): New.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-fopenmp" } */
|
|
||||||
/* { dg-additional-options "-std=c99" { target c } } */
|
/* { dg-additional-options "-std=c99" { target c } } */
|
||||||
|
|
||||||
int t;
|
int t;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-fopenmp" } */
|
|
||||||
|
|
||||||
void
|
void
|
||||||
foo (int a, int b, int *p, int *q)
|
foo (int a, int b, int *p, int *q)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/* PR middle-end/61486 */
|
/* PR middle-end/61486 */
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-fopenmp" } */
|
|
||||||
/* { dg-require-effective-target alloca } */
|
/* { dg-require-effective-target alloca } */
|
||||||
|
|
||||||
#pragma omp declare target
|
#pragma omp declare target
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-fopenmp -fdump-tree-gimple" } */
|
/* { dg-additional-options "-fdump-tree-gimple" } */
|
||||||
|
|
||||||
int v = 6;
|
int v = 6;
|
||||||
void bar (int);
|
void bar (int);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ dg-init
|
||||||
# Main loop.
|
# Main loop.
|
||||||
g++-dg-runtest [lsort [concat \
|
g++-dg-runtest [lsort [concat \
|
||||||
[find $srcdir/$subdir *.C] \
|
[find $srcdir/$subdir *.C] \
|
||||||
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp"
|
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp -Wno-hsa"
|
||||||
|
|
||||||
# All done.
|
# All done.
|
||||||
dg-finish
|
dg-finish
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// { dg-do compile }
|
// { dg-do compile }
|
||||||
// { dg-options "-fopenmp -fdump-tree-gimple" }
|
// { dg-additional-options "-fdump-tree-gimple" }
|
||||||
|
|
||||||
int v = 6;
|
int v = 6;
|
||||||
void bar (int);
|
void bar (int);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ dg-init
|
||||||
# Main loop.
|
# Main loop.
|
||||||
dg-runtest [lsort [concat \
|
dg-runtest [lsort [concat \
|
||||||
[find $srcdir/$subdir *.c] \
|
[find $srcdir/$subdir *.c] \
|
||||||
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp"
|
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp -Wno-hsa"
|
||||||
|
|
||||||
# All done.
|
# All done.
|
||||||
dg-finish
|
dg-finish
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* PR tree-optimization/68128 */
|
/* PR tree-optimization/68128 */
|
||||||
/* { dg-do compile } */
|
/* { dg-do compile } */
|
||||||
/* { dg-options "-O2 -fopenmp -fdump-tree-omplower" } */
|
/* { dg-additional-options "-O2 -fdump-tree-omplower" } */
|
||||||
|
|
||||||
extern int omp_get_thread_num (void);
|
extern int omp_get_thread_num (void);
|
||||||
extern int omp_get_ancestor_thread_num (int);
|
extern int omp_get_ancestor_thread_num (int);
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ dg-init
|
||||||
|
|
||||||
# Main loop.
|
# Main loop.
|
||||||
gfortran-dg-runtest [lsort \
|
gfortran-dg-runtest [lsort \
|
||||||
[find $srcdir/$subdir *.\[fF\]{,90,95,03,08} ] ] "" "-fopenmp"
|
[find $srcdir/$subdir *.\[fF\]{,90,95,03,08} ] ] "" "-fopenmp -Wno-hsa"
|
||||||
|
|
||||||
# All done.
|
# All done.
|
||||||
dg-finish
|
dg-finish
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
! { dg-do compile }
|
! { dg-do compile }
|
||||||
! { dg-options "-fopenmp" }
|
|
||||||
|
|
||||||
module target1
|
module target1
|
||||||
interface
|
interface
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
! { dg-do compile }
|
! { dg-do compile }
|
||||||
! { dg-options "-fopenmp -ffree-line-length-160" }
|
! { dg-additional-options "-ffree-line-length-160" }
|
||||||
|
|
||||||
subroutine foo (n, s, t, u, v, w)
|
subroutine foo (n, s, t, u, v, w)
|
||||||
integer :: n, i, s, t, u, v, w
|
integer :: n, i, s, t, u, v, w
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
! { dg-do compile }
|
! { dg-do compile }
|
||||||
! { dg-options "-fopenmp" }
|
|
||||||
|
|
||||||
subroutine foo (r)
|
subroutine foo (r)
|
||||||
integer :: i, r
|
integer :: i, r
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue