-
- Downloads
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.
Showing
- gcc/c/c-parser.cc 15 additions, 4 deletionsgcc/c/c-parser.cc
- gcc/cp/parser.cc 15 additions, 4 deletionsgcc/cp/parser.cc
- gcc/fortran/gfortran.h 1 addition, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/openmp.cc 9 additions, 3 deletionsgcc/fortran/openmp.cc
- gcc/fortran/trans-openmp.cc 3 additions, 0 deletionsgcc/fortran/trans-openmp.cc
- gcc/gimplify.cc 1 addition, 0 deletionsgcc/gimplify.cc
- gcc/testsuite/c-c++-common/gomp/defaultmap-5.c 47 additions, 0 deletionsgcc/testsuite/c-c++-common/gomp/defaultmap-5.c
- gcc/testsuite/c-c++-common/gomp/defaultmap-6.c 48 additions, 0 deletionsgcc/testsuite/c-c++-common/gomp/defaultmap-6.c
- gcc/testsuite/gfortran.dg/gomp/defaultmap-1.f90 1 addition, 1 deletiongcc/testsuite/gfortran.dg/gomp/defaultmap-1.f90
- gcc/testsuite/gfortran.dg/gomp/defaultmap-10.f90 116 additions, 0 deletionsgcc/testsuite/gfortran.dg/gomp/defaultmap-10.f90
- gcc/testsuite/gfortran.dg/gomp/defaultmap-9.f90 71 additions, 0 deletionsgcc/testsuite/gfortran.dg/gomp/defaultmap-9.f90
- gcc/tree-core.h 1 addition, 0 deletionsgcc/tree-core.h
- gcc/tree-pretty-print.cc 3 additions, 0 deletionsgcc/tree-pretty-print.cc
- libgomp/libgomp.texi 3 additions, 1 deletionlibgomp/libgomp.texi
Loading
Please register or sign in to comment