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

Make ctx_in_oacc_kernels_region static

2015-09-29  Tom de Vries  <t...@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

Reply via email to