]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/gfortran.h
OpenMP: Fortran - support omp flush's memorder clauses
authorTobias Burnus <tobias@codesourcery.com>
Thu, 22 Oct 2020 15:09:22 +0000 (17:09 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 22 Oct 2020 15:09:22 +0000 (17:09 +0200)
commitc26d7df103197e52dcd6edbb9a7f58eafdd6c715
tree612b26bcbe24f27385ef93fa3bda30b2f90f4276
parentb69c00612db1ccf7de77b0072c6b1b47090318f3
OpenMP: Fortran - support omp flush's memorder clauses

gcc/fortran/ChangeLog:

* gfortran.h (enum gfc_omp_memorder): Add.
(gfc_omp_clauses): Use it.
* openmp.c (gfc_match_omp_flush): Match memorder clauses.
* trans-openmp.c (gfc_trans_omp_flush): Handle them.
(gfc_trans_omp_directive): Update call.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/flush-1.f90: New test.
* gfortran.dg/gomp/flush-2.f90: New test.
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/flush-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/flush-2.f90 [new file with mode: 0644]