diff options
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 5c51f50..9e5e423 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -9125,7 +9125,10 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, " or private in outer context", DECL_NAME (decl)); } do_notice: - if ((region_type & ORT_TASKLOOP) == ORT_TASKLOOP + if (((region_type & ORT_TASKLOOP) == ORT_TASKLOOP + || (region_type == ORT_WORKSHARE + && OMP_CLAUSE_CODE (c) == OMP_CLAUSE_REDUCTION + && OMP_CLAUSE_REDUCTION_INSCAN (c))) && outer_ctx && outer_ctx->region_type == ORT_COMBINED_PARALLEL && (OMP_CLAUSE_CODE (c) == OMP_CLAUSE_REDUCTION |