diff mbox

[gomp4,committed] Ignore reduction clauses in kernels region

Message ID 560A6683.5000605@mentor.com
State New
Headers show

Commit Message

Tom de Vries Sept. 29, 2015, 10:22 a.m. UTC
On 29/09/15 11:49, Tom de Vries wrote:
> Hi,
>
> this patch filters out reduction clauses in an oacc kernels region. This
> fixes an ICE in the test-case.
>
> Committed to gomp-4_0-branch.

I've committed this follow-up patch that marks the function 
ctx_in_oacc_kernels_region static, and adds the missing function header 
comment.

Thanks,
- Tom
diff mbox

Patch

Make ctx_in_oacc_kernels_region static

2015-09-29  Tom de Vries  <tom@codesourcery.com>

	* omp-low.c (ctx_in_oacc_kernels_region): Make static.  Add missing
	function header comment.
---
 gcc/omp-low.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 75044a5..64f6168 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -2579,7 +2579,9 @@  oacc_loop_or_target_p (gimple *stmt)
 	      && gimple_omp_for_kind (stmt) == GF_OMP_FOR_KIND_OACC_LOOP));
 }
 
-bool
+/* Return true if ctx is part of an oacc kernels region.  */
+
+static bool
 ctx_in_oacc_kernels_region (omp_context *ctx)
 {
   for (;ctx != NULL; ctx = ctx->outer)
-- 
1.9.1