This patch fixes a bootstrap failure that I encountered while
backporting the firstprivate subarray patch to gomp-4_0-branch. I've
applied it to gomp4.

Cesar
2016-05-27  Cesar Philippidis  <ce...@codesourcery.com>

	* gcc/omp-low.c (oacc_loop_auto_partitions): Use boolean OR
	when comparing outer_assign adn loop->inner.


diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index dd8789d..200d331 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -19699,7 +19699,7 @@ oacc_loop_auto_partitions (oacc_loop *loop, unsigned outer_mask,
   noisy = false;
 #endif
 
-  if (assign && (!outer_assign | loop->inner))
+  if (assign && (!outer_assign || loop->inner))
     {
       /* Allocate outermost and non-innermost loops at the outermost
 	 non-innermost available level.  */

Reply via email to