OpenMP: Add omp_all_memory support to Fortran
authorTobias Burnus <tobias@codesourcery.com>
Tue, 17 May 2022 09:01:04 +0000 (11:01 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 17 May 2022 09:01:04 +0000 (11:01 +0200)
commit4f94c38a9237b728b3a3f76c169b5b47f6c45187
tree2ec7b560f303f268bb602613d6ea0d3eff96e428
parentebce0e9bd8d714a8607ae24331a3d842b0d11859
OpenMP: Add omp_all_memory support to Fortran

Fortran part to the C/C++/backend implementation
r13-337-g7f78783dbedca0183d193e475262ca3c489fd365

gcc/fortran/ChangeLog:

* dump-parse-tree.cc (show_omp_namelist): Handle omp_all_memory.
* openmp.cc (gfc_match_omp_variable_list, gfc_match_omp_depend_sink,
gfc_match_omp_clauses, resolve_omp_clauses): Likewise.
* trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
Likewise.
* resolve.cc (resolve_symbol): Reject it as symbol.

libgomp/ChangeLog:

* libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
* testsuite/libgomp.fortran/depend-5.f90: New test.
* testsuite/libgomp.fortran/depend-6.f90: New test.
* testsuite/libgomp.fortran/depend-7.f90: New test.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/all-memory-1.f90: New test.
* gfortran.dg/gomp/all-memory-2.f90: New test.
* gfortran.dg/gomp/all-memory-3.f90: New test.
gcc/fortran/dump-parse-tree.cc
gcc/fortran/openmp.cc
gcc/fortran/resolve.cc
gcc/fortran/trans-openmp.cc
gcc/testsuite/gfortran.dg/gomp/all-memory-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/all-memory-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/all-memory-3.f90 [new file with mode: 0644]
libgomp/libgomp.texi
libgomp/testsuite/libgomp.fortran/depend-5.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/depend-6.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/depend-7.f90 [new file with mode: 0644]