[PR middle-end/71373] Handle more OMP_CLAUSE_* in nested function decomposition
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Jun 2016 09:22:51 +0000 (11:22 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 10 Jun 2016 09:22:51 +0000 (11:22 +0200)
commit27d6ba889b34d38dc13b5f3a8959c576fe0477b1
tree6c4530f1aeeecad6e3d237c3d6c13f195e47fa50
parent4b1ffdb16c4a54a4f8ad957143336e279b8d5c60
[PR middle-end/71373] Handle more OMP_CLAUSE_* in nested function decomposition

gcc/
* gimplify.c (gimplify_adjust_omp_clauses): Discard
OMP_CLAUSE_TILE.
* omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
gcc/testsuite/
* c-c++-common/goacc/combined-directives.c: XFAIL tree scanning
for OpenACC tile clauses.
* gfortran.dg/goacc/combined-directives.f90: Likewise.

gcc/
PR middle-end/71373
* tree-nested.c (convert_nonlocal_omp_clauses)
(convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
gcc/testsuite/
PR middle-end/71373
* gcc.dg/goacc/nested-function-1.c: New file.
* gcc.dg/goacc/nested-function-2.c: Likewise.
* gcc.dg/goacc/pr71373.c: Likewise.
* gfortran.dg/goacc/cray-2.f95: Likewise.
* gfortran.dg/goacc/loop-1-2.f95: Likewise.
* gfortran.dg/goacc/loop-3-2.f95: Likewise.
* gfortran.dg/goacc/cray.f95: Update.
* gfortran.dg/goacc/loop-1.f95: Likewise.
* gfortran.dg/goacc/loop-3.f95: Likewise.
* gfortran.dg/goacc/subroutines.f90: Update, and rename to...
* gfortran.dg/goacc/nested-function-1.f90: ... this new file.
libgomp/testsuite/
PR middle-end/71373
* libgomp.oacc-c/nested-function-1.c: New file.
* libgomp.oacc-c/nested-function-2.c: Likewise.
* libgomp.oacc-fortran/nested-function-1.f90: Likewise.
* libgomp.oacc-fortran/nested-function-2.f90: Likewise.
* libgomp.oacc-fortran/nested-function-3.f90: Likewise.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r237291
24 files changed:
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/combined-directives.c
gcc/testsuite/gcc.dg/goacc/nested-function-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/goacc/nested-function-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/goacc/pr71373.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/combined-directives.f90
gcc/testsuite/gfortran.dg/goacc/cray-2.f95 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/cray.f95
gcc/testsuite/gfortran.dg/goacc/loop-1-2.f95 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/loop-1.f95
gcc/testsuite/gfortran.dg/goacc/loop-3-2.f95 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/loop-3.f95
gcc/testsuite/gfortran.dg/goacc/nested-function-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/subroutines.f90 [deleted file]
gcc/tree-nested.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c/nested-function-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c/nested-function-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/nested-function-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/nested-function-2.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/nested-function-3.f90 [new file with mode: 0644]