diff options
author | Julian Brown <julian@codesourcery.com> | 2019-09-06 08:46:20 -0700 |
---|---|---|
committer | Kwok Cheung Yeung <kcy@codesourcery.com> | 2022-06-21 14:11:18 +0100 |
commit | 0c769078d6df58317393fbf5209b0ae454507ebd (patch) | |
tree | a46119aee089402986e7b54ddb3ff44dd27e5ab8 /gcc | |
parent | 9793ca937c6c88b944870259c87b934cf9747d0b (diff) | |
download | gcc-0c769078d6df58317393fbf5209b0ae454507ebd.zip gcc-0c769078d6df58317393fbf5209b0ae454507ebd.tar.gz gcc-0c769078d6df58317393fbf5209b0ae454507ebd.tar.bz2 |
Use more appropriate var in localize_reductions call
gcc/
* gimplify.cc (gimplify_omp_for): Use for_stmt in call to
localize_reductions.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog.omp | 5 | ||||
-rw-r--r-- | gcc/gimplify.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp index ac314ab..8cd46a7 100644 --- a/gcc/ChangeLog.omp +++ b/gcc/ChangeLog.omp @@ -1,5 +1,10 @@ 2019-09-06 Julian Brown <julian@codesourcery.com> + * gimplify.cc (gimplify_omp_for): Use for_stmt in call to + localize_reductions. + +2019-09-06 Julian Brown <julian@codesourcery.com> + * gimplify.cc (gimplify_omp_workshare): Use OMP_CLAUSES, OMP_BODY instead of OMP_TARGET_CLAUSES, OMP_TARGET_BODY. diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index 5d0a514..90e74b5 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -12854,7 +12854,8 @@ gimplify_omp_for (tree *expr_p, gimple_seq *pre_p) here, because the code to remove reductions in kernels regions cannot handle that. */ if (outer && outer->region_type == ORT_ACC_PARALLEL) - localize_reductions (OMP_FOR_CLAUSES (*expr_p), OMP_FOR_BODY (*expr_p)); + localize_reductions (OMP_FOR_CLAUSES (for_stmt), + OMP_FOR_BODY (for_stmt)); } /* Set OMP_CLAUSE_LINEAR_NO_COPYIN flag on explicit linear |