https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71373
--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Author: tschwinge Date: Fri Jun 10 09:22:51 2016 New Revision: 237291 URL: https://gcc.gnu.org/viewcvs?rev=237291&root=gcc&view=rev Log: [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. Added: trunk/gcc/testsuite/gcc.dg/goacc/nested-function-1.c trunk/gcc/testsuite/gcc.dg/goacc/nested-function-2.c trunk/gcc/testsuite/gcc.dg/goacc/pr71373.c trunk/gcc/testsuite/gfortran.dg/goacc/cray-2.f95 - copied, changed from r237290, trunk/gcc/testsuite/gfortran.dg/goacc/cray.f95 trunk/gcc/testsuite/gfortran.dg/goacc/loop-1-2.f95 - copied, changed from r237290, trunk/gcc/testsuite/gfortran.dg/goacc/loop-1.f95 trunk/gcc/testsuite/gfortran.dg/goacc/loop-3-2.f95 - copied, changed from r237290, trunk/gcc/testsuite/gfortran.dg/goacc/loop-3.f95 trunk/gcc/testsuite/gfortran.dg/goacc/nested-function-1.f90 trunk/libgomp/testsuite/libgomp.oacc-c/nested-function-1.c trunk/libgomp/testsuite/libgomp.oacc-c/nested-function-2.c trunk/libgomp/testsuite/libgomp.oacc-fortran/nested-function-1.f90 trunk/libgomp/testsuite/libgomp.oacc-fortran/nested-function-2.f90 trunk/libgomp/testsuite/libgomp.oacc-fortran/nested-function-3.f90 Removed: trunk/gcc/testsuite/gfortran.dg/goacc/subroutines.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/gcc/omp-low.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/goacc/combined-directives.c trunk/gcc/testsuite/gfortran.dg/goacc/combined-directives.f90 trunk/gcc/testsuite/gfortran.dg/goacc/cray.f95 trunk/gcc/testsuite/gfortran.dg/goacc/loop-1.f95 trunk/gcc/testsuite/gfortran.dg/goacc/loop-3.f95 trunk/gcc/tree-nested.c trunk/libgomp/ChangeLog