Commit 1a888209 by Jakub Jelinek Committed by Jakub Jelinek

re PR c/91149 (GCC 9 and later incorrectly rejects OpenMP task…

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
parent 70468604
2019-07-13 Jakub Jelinek <jakub@redhat.com>
PR c/91149
* c-omp.c (c_omp_split_clauses): Fix a pasto in
OMP_CLAUSE_REDUCTION_TASK handling.
2019-07-12 Jakub Jelinek <jakub@redhat.com>
* c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER.
......
......@@ -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)
{
......
2019-07-13 Jakub Jelinek <jakub@redhat.com>
PR c/91149
* c-c++-common/gomp/reduction-task-3.c: New test.
* c-c++-common/gomp/order-3.c: New test.
* c-c++-common/gomp/order-4.c: New test.
......
/* PR c/91149 */
int r;
void
foo (void)
{
#pragma omp parallel reduction(task, +: r)
r++;
#pragma omp target parallel reduction(task, +: r)
r++;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment