Fortran: Fix clause splitting for OMP masked taskloop directive
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Apr 2022 19:06:56 +0000 (12:06 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Apr 2022 19:10:29 +0000 (12:10 -0700)
commit7de46116aa8c9bc4c5d24cb58ff717be8f0b650e
tree72abe3d609160833624507e00e9c97fef9744c43
parentcbc9dd66484a51d450f78ab748a872b939c90c3f
Fortran: Fix clause splitting for OMP masked taskloop directive

This patch fixes an obvious coding goof that caused all clauses for
the combined OMP masked taskloop directive to be discarded.

gcc/fortran/
* trans-openmp.cc (gfc_split_omp_clauses): Fix mask for
EXEC_OMP_MASKED_TASKLOOP.

gcc/testsuite/
* gfortran.dg/gomp/masked-taskloop.f90: New.
gcc/fortran/trans-openmp.cc
gcc/testsuite/gfortran.dg/gomp/masked-taskloop.f90 [new file with mode: 0644]