diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-08-12 18:09:57 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-08-12 18:09:57 +0200 |
commit | 21cfe724cbdc30612bf1ef59b26f19ada2210832 (patch) | |
tree | 8a7b1d52ea1fd089883e1536a4f4431b87b2cf95 /gcc/fortran/trans-openmp.c | |
parent | fe9458c280dbd6e8b892db4ca3b64185049c376b (diff) | |
download | gcc-21cfe724cbdc30612bf1ef59b26f19ada2210832.zip gcc-21cfe724cbdc30612bf1ef59b26f19ada2210832.tar.gz gcc-21cfe724cbdc30612bf1ef59b26f19ada2210832.tar.bz2 |
Fortran: Add support for OpenMP's nontemporal clause
gcc/fortran/ChangeLog:
* gfortran.h: Add OMP_LIST_NONTEMPORAL.
* dump-parse-tree.c (show_omp_clauses): Dump it
* openmp.c (enum omp_mask1): Add OMP_CLAUSE_NOTEMPORAL.
(OMP_SIMD_CLAUSES): Add it.
(gfc_match_omp_clauses): Match nontemporal clause.
* trans-openmp.c (gfc_trans_omp_clauses): Process
nontemporal clause.
gcc/testsuite/ChangeLog:
* gfortran.dg/gomp/nontemporal-1.f90: New test.
* gfortran.dg/gomp/nontemporal-2.f90: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
-rw-r--r-- | gcc/fortran/trans-openmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c index 7891a7e..063d4c1 100644 --- a/gcc/fortran/trans-openmp.c +++ b/gcc/fortran/trans-openmp.c @@ -2290,6 +2290,9 @@ gfc_trans_omp_clauses (stmtblock_t *block, gfc_omp_clauses *clauses, case OMP_LIST_IS_DEVICE_PTR: clause_code = OMP_CLAUSE_IS_DEVICE_PTR; goto add_clause; + case OMP_LIST_NONTEMPORAL: + clause_code = OMP_CLAUSE_NONTEMPORAL; + goto add_clause; add_clause: omp_clauses |