On Tue, Jun 19, 2018 at 09:58:26AM -0700, Cesar Philippidis wrote: > This patch implements the OpenACC 2.5 data clause semantics in the C++ FE. > > Is it OK for trunk? > > Cesar
> 2018-06-19 Chung-Lin Tang <clt...@codesourcery.com> > Thomas Schwinge <tho...@codesourcery.com> > Cesar Philippidis <ce...@codesourcery.com> > > gcc/cp/ > * parser.c (cp_parser_omp_clause_name): Add support for finalize > and if_present. Make present_or_{copy,copyin,copyout,create} aliases > to their non-present_or_* counterparts. Make 'self' an alias to > PRAGMA_OACC_CLAUSE_HOST. > (cp_parser_oacc_data_clause): Update GOMP mappings for > PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove > PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}. > (cp_parser_oacc_all_clauses): Handle finalize and if_present clauses. > Remove support for present_or_* clauses. > (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses. > (OACC_PARALLEL_CLAUSE_MASK): Likewise. > (OACC_DECLARE_CLAUSE_MASK): Likewise. > (OACC_DATA_CLAUSE_MASK): Likewise. > (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses. > (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause. > (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT. > (cp_parser_oacc_declare): Remove PRESENT_OR_* clauses. > * pt.c (tsubst_omp_clauses): Handle IF_PRESENT and FINALIZE. > * semantics.c (finish_omp_clauses): Handle IF_PRESENT and FINALIZE. Ok, thanks. Jakub