OpenMP: Support 'if (simd:/cancel:' in Fortran
authorTobias Burnus <tobias@codesourcery.com>
Wed, 22 Jul 2020 19:02:01 +0000 (21:02 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 22 Jul 2020 19:02:01 +0000 (21:02 +0200)
commite55ba804d3b8de86a430a8a5553dfc1ad06daa74
tree02a4ad3afecb84dcddc114e1f2c91f8e03879d29
parentae575662833d70cb7d74b9538096c7becc79af14
OpenMP: Support 'if (simd:/cancel:' in Fortran

gcc/fortran/ChangeLog:

* gfortran.h (enum gfc_omp_if_kind): Add OMP_IF_CANCEL and OMP_IF_SIMD.
* openmp.c (OMP_SIMD_CLAUSES): Add OMP_CLAUSE_IF.
(gfc_match_omp_clauses, resolve_omp_clauses): Handle 'if (simd/cancel:'.
* dump-parse-tree.c (show_omp_clauses): Likewise.
* trans-openmp.c (gfc_trans_omp_clauses, gfc_trans_omp_cancel,
(gfc_split_omp_clauses): Likewise.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/cancel-2.f90: New test.
* gfortran.dg/gomp/cancel-3.f90: New test.
* gfortran.dg/gomp/if-1.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/cancel-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/cancel-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/if-1.f90 [new file with mode: 0644]