https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71373
--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Author: tschwinge Date: Fri Jun 10 09:46:18 2016 New Revision: 237296 URL: https://gcc.gnu.org/viewcvs?rev=237296&root=gcc&view=rev Log: [PR middle-end/71373] Handle more OMP_CLAUSE_* in nested function decomposition Backport trunk r237291: 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: branches/gcc-6-branch/gcc/testsuite/gcc.dg/goacc/nested-function-1.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/goacc/nested-function-2.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/goacc/pr71373.c branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/cray-2.f95 - copied, changed from r237295, branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/cray.f95 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-1-2.f95 - copied, changed from r237295, branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-1.f95 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-3-2.f95 - copied, changed from r237295, branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-3.f95 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/nested-function-1.f90 branches/gcc-6-branch/libgomp/testsuite/libgomp.oacc-c/nested-function-1.c branches/gcc-6-branch/libgomp/testsuite/libgomp.oacc-c/nested-function-2.c branches/gcc-6-branch/libgomp/testsuite/libgomp.oacc-fortran/nested-function-1.f90 branches/gcc-6-branch/libgomp/testsuite/libgomp.oacc-fortran/nested-function-2.f90 branches/gcc-6-branch/libgomp/testsuite/libgomp.oacc-fortran/nested-function-3.f90 Removed: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/subroutines.f90 Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/gimplify.c branches/gcc-6-branch/gcc/omp-low.c branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/testsuite/c-c++-common/goacc/combined-directives.c branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/combined-directives.f90 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/cray.f95 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-1.f95 branches/gcc-6-branch/gcc/testsuite/gfortran.dg/goacc/loop-3.f95 branches/gcc-6-branch/gcc/tree-nested.c branches/gcc-6-branch/libgomp/ChangeLog