]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[og9] Fix tree check failure with reduction localization
authorJulian Brown <julian@codesourcery.com>
Fri, 6 Sep 2019 11:42:16 +0000 (04:42 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:50:41 +0000 (12:50 +0100)
gcc/
* gimplify.c (gimplify_omp_workshare): Use OMP_CLAUSES, OMP_BODY
instead of OMP_TARGET_CLAUSES, OMP_TARGET_BODY.

(cherry picked from openacc-gcc-9-branch commit
53886cd9a0b09531797ddf456d9a902fc737d094)

gcc/ChangeLog.omp
gcc/gimplify.c

index ddde3b8f84fcba810a80823b8178a59f9d556bd8..9e7893aa11edc9a1940901440d5a0964551527e1 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-06  Julian Brown  <julian@codesourcery.com>
+
+       * gimplify.c (gimplify_omp_workshare): Use OMP_CLAUSES, OMP_BODY
+       instead of OMP_TARGET_CLAUSES, OMP_TARGET_BODY.
+
 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
 
        Backport from mainline:
index 685db1763e0f0ec5d591959f55d578397974ab23..3d869447d70282b2c457c5a646e14e438f0ca6a5 100644 (file)
@@ -12253,8 +12253,7 @@ gimplify_omp_workshare (tree *expr_p, gimple_seq *pre_p)
 
       /* FIXME: Reductions are not supported in kernels regions yet.  */
       if (/*ort == ORT_ACC_KERNELS ||*/ ort == ORT_ACC_PARALLEL)
-        localize_reductions (OMP_TARGET_CLAUSES (*expr_p),
-                            OMP_TARGET_BODY (*expr_p));
+        localize_reductions (OMP_CLAUSES (expr), OMP_BODY (expr));
 
       gimple *g = gimplify_and_return_first (OMP_BODY (expr), &body);
       if (gimple_code (g) == GIMPLE_BIND)