]> gcc.gnu.org Git - gcc.git/commit
OpenMP: Handle 'all' as category in defaultmap
authorTobias Burnus <tobias@codesourcery.com>
Tue, 22 Aug 2023 15:06:50 +0000 (17:06 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 22 Aug 2023 15:06:50 +0000 (17:06 +0200)
commit0698c9fddfc5a41dd7f233928b7a486cb044fea3
treec78723dcc4ba9247a5510f52b8c58250ebf03bcf
parent145da6a8e1ad60f048069012d81e37f84e1585fd
OpenMP: Handle 'all' as category in defaultmap

Both, specifying no category and specifying 'all', implies
that the implicit-behavior applies to all categories.

gcc/c/ChangeLog:

* c-parser.cc (c_parser_omp_clause_defaultmap): Parse
'all' as category.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_omp_clause_defaultmap): Parse
'all' as category.

gcc/fortran/ChangeLog:

* gfortran.h (enum gfc_omp_defaultmap_category):
Add OMP_DEFAULTMAP_CAT_ALL.
* openmp.cc (gfc_match_omp_clauses): Parse
'all' as category.
* trans-openmp.cc (gfc_trans_omp_clauses): Handle it.

gcc/ChangeLog:

* tree-core.h (enum omp_clause_defaultmap_kind): Add
OMP_CLAUSE_DEFAULTMAP_CATEGORY_ALL.
* gimplify.cc (gimplify_scan_omp_clauses): Handle it.
* tree-pretty-print.cc (dump_omp_clause): Likewise.

libgomp/ChangeLog:

* libgomp.texi (OpenMP 5.2 status): Add depobj with
destroy-var argument as 'N'. Mark defaultmap with
'all' category as 'Y'.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/defaultmap-1.f90: Update dg-error.
* c-c++-common/gomp/defaultmap-5.c: New test.
* c-c++-common/gomp/defaultmap-6.c: New test.
* gfortran.dg/gomp/defaultmap-10.f90: New test.
* gfortran.dg/gomp/defaultmap-9.f90: New test.
14 files changed:
gcc/c/c-parser.cc
gcc/cp/parser.cc
gcc/fortran/gfortran.h
gcc/fortran/openmp.cc
gcc/fortran/trans-openmp.cc
gcc/gimplify.cc
gcc/testsuite/c-c++-common/gomp/defaultmap-5.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/defaultmap-6.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/defaultmap-1.f90
gcc/testsuite/gfortran.dg/gomp/defaultmap-10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/defaultmap-9.f90 [new file with mode: 0644]
gcc/tree-core.h
gcc/tree-pretty-print.cc
libgomp/libgomp.texi
This page took 0.089558 seconds and 6 git commands to generate.