omp-offload.c (oacc_loop_auto_partitions): Use || instead of | to avoid warning.

* omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
	to avoid warning.

From-SVN: r245306
This commit is contained in:
Jakub Jelinek 2017-02-09 16:17:55 +01:00 committed by Jakub Jelinek
parent 28f6839be1
commit 891ba5eb6d
2 changed files with 4 additions and 1 deletions

View 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.

View 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. */