]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran/OpenMP: unconstrained/reproducible ordered modifier
authorTobias Burnus <tobias@codesourcery.com>
Mon, 20 Sep 2021 10:13:31 +0000 (12:13 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 20 Sep 2021 10:13:31 +0000 (12:13 +0200)
commit0de4184baca19cdd4ebc2d8aa2d538330cae51ee
treeecc54fa767818f38c668f288e38bfaf62fa1c5c5
parent24f99147b9264f8f7d9cfb2fa6bd431edfa252d2
Fortran/OpenMP: unconstrained/reproducible ordered modifier

gcc/fortran/ChangeLog:

* gfortran.h (gfc_omp_clauses): Add order_unconstrained.
* dump-parse-tree.c (show_omp_clauses): Dump it.
* openmp.c (gfc_match_omp_clauses): Match unconstrained/reproducible
modifiers to ordered(concurrent).
(OMP_DISTRIBUTE_CLAUSES): Accept ordered clause.
(resolve_omp_clauses): Reject ordered + order on same directive.
* trans-openmp.c (gfc_trans_omp_clauses, gfc_split_omp_clauses): Pass
on unconstrained modifier of ordered(concurrent).

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/order-5.f90: New test.
* gfortran.dg/gomp/order-6.f90: New test.
* gfortran.dg/gomp/order-7.f90: New test.
* gfortran.dg/gomp/order-8.f90: New test.
* gfortran.dg/gomp/order-9.f90: New test.
gcc/fortran/dump-parse-tree.c
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/order-5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/order-6.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/order-7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/order-8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/order-9.f90 [new file with mode: 0644]