Backported from mainline
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.
* c-c++-common/gomp/reduction-task-3.c: New test.
From-SVN: r273478
+2019-07-14 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 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-06-29 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
}
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-14 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-07-13 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/91149
+ * c-c++-common/gomp/reduction-task-3.c: New test.
+
2019-07-04 Jakub Jelinek <jakub@redhat.com>
PR middle-end/78884
--- /dev/null
+/* PR c/91149 */
+
+int r;
+
+void
+foo (void)
+{
+ #pragma omp parallel reduction(task, +: r)
+ r++;
+ #pragma omp target parallel reduction(task, +: r)
+ r++;
+}