public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Use more appropriate var in localize_reductions call
@ 2021-05-13 16:12 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ec9461da036d2a37d7657ca29c100e2d29f8e77a

commit ec9461da036d2a37d7657ca29c100e2d29f8e77a
Author: Julian Brown <julian@codesourcery.com>
Date:   Fri Sep 6 08:46:20 2019 -0700

    Use more appropriate var in localize_reductions call
    
            gcc/
            * gimplify.c (gimplify_omp_for): Use for_stmt in call to
            localize_reductions.

Diff:
---
 gcc/ChangeLog.omp | 5 +++++
 gcc/gimplify.c    | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index b0ad743f5f7..ab17bf0863d 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,8 @@
+2019-09-06  Julian Brown  <julian@codesourcery.com>
+
+	* gimplify.c (gimplify_omp_for): Use for_stmt in call to
+	localize_reductions.
+
 2019-09-06  Julian Brown  <julian@codesourcery.com>
 
 	* config/nvptx/nvptx.c (omp-sese.h): Include.
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 05f88eae7e0..dcd6e0de34c 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -11923,7 +11923,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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:12 [gcc/devel/omp/gcc-11] Use more appropriate var in localize_reductions call Kwok Yeung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).