summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-omp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-07-13 08:29:46 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-07-13 08:29:46 +0200
commit1a888209de88d4a4a1f415beb28e5a94b95e088f (patch)
tree7bd031afd9f9794d45465048da220b4ede473266 /gcc/c-family/c-omp.c
parent704686049d5eb2d54fe62585d2c17c5ef00dbb83 (diff)
downloadgcc-1a888209de88d4a4a1f415beb28e5a94b95e088f.tar.gz
re PR c/91149 (GCC 9 and later incorrectly rejects OpenMP task reduction-modifier on target parallel combined construct)
PR c/91149 * c-omp.c (c_omp_split_clauses): Fix a pasto in OMP_CLAUSE_REDUCTION_TASK handling. * c-c++-common/gomp/reduction-task-3.c: New test. From-SVN: r273465
Diffstat (limited to 'gcc/c-family/c-omp.c')
-rw-r--r--gcc/c-family/c-omp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-omp.c b/gcc/c-family/c-omp.c
index fc08e939651..dc59bd2ceeb 100644
--- a/gcc/c-family/c-omp.c
+++ b/gcc/c-family/c-omp.c
@@ -1667,7 +1667,7 @@ c_omp_split_clauses (location_t loc, enum tree_code code,
}
else if (code != OMP_SECTIONS
&& (mask & (OMP_CLAUSE_MASK_1
- << PRAGMA_OMP_CLAUSE_SCHEDULE)) == 0
+ << PRAGMA_OMP_CLAUSE_NUM_THREADS)) == 0
&& (mask & (OMP_CLAUSE_MASK_1
<< PRAGMA_OMP_CLAUSE_SCHEDULE)) == 0)
{