]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Accept argument to depobj's destroy clause
authorTobias Burnus <tobias@codesourcery.com>
Fri, 24 Nov 2023 14:10:49 +0000 (15:10 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 24 Nov 2023 14:10:49 +0000 (15:10 +0100)
commit1802f64e674eeef0c0d7e8f6ca2846145ec16315
treee68838cde627c0e9a342e2ad2495a826d024fb88
parent726723c476800285cfbdfce612cedde4a9a7ad58
OpenMP: Accept argument to depobj's destroy clause

Since OpenMP 5.2, the destroy clause takes an depend argument as argument;
for the depobj directive, it the new argument is optional but, if present,
it must be identical to the directive's argument.

gcc/c/ChangeLog:

* c-parser.cc (c_parser_omp_depobj): Accept optionally an argument
to the destroy clause.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_omp_depobj): Accept optionally an argument
to the destroy clause.

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_depobj): Accept optionally an argument
to the destroy clause.

libgomp/ChangeLog:

* libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
is now supported.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/depobj-3.c: New test.
* gfortran.dg/gomp/depobj-3.f90: New test.
gcc/c/c-parser.cc
gcc/cp/parser.cc
gcc/fortran/openmp.cc
gcc/testsuite/c-c++-common/gomp/depobj-3.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/depobj-3.f90 [new file with mode: 0644]
libgomp/libgomp.texi