omp-offload.c (oacc_loop_auto_partitions): Use || instead of | to avoid warning.
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Feb 2017 15:17:55 +0000 (16:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Feb 2017 15:17:55 +0000 (16:17 +0100)
* omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
to avoid warning.

From-SVN: r245306

gcc/ChangeLog
gcc/omp-offload.c

index 416961b632113ffa677450e1a79ebc529f16aee9..863678a195ef63a38f01c48cd821e4253012d29b 100644 (file)
@@ -1,5 +1,8 @@
 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
 
+       * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
+       to avoid warning.
+
        PR c/79413
        * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
        not arbitrary TREE_CONSTANT.
index 6fbe4ff753a173d55686941a15173a05b9e0efa8..11696b86c7251592280e1b7b72ccad1f91165d70 100644 (file)
@@ -1252,7 +1252,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.  */