Commit 891ba5eb by Jakub Jelinek Committed by Jakub Jelinek

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
parent 28f6839b
2017-02-09 Jakub Jelinek <jakub@redhat.com> 2017-02-09 Jakub Jelinek <jakub@redhat.com>
* omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
to avoid warning.
PR c/79413 PR c/79413
* gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants, * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
not arbitrary TREE_CONSTANT. not arbitrary TREE_CONSTANT.
......
...@@ -1252,7 +1252,7 @@ oacc_loop_auto_partitions (oacc_loop *loop, unsigned outer_mask, ...@@ -1252,7 +1252,7 @@ oacc_loop_auto_partitions (oacc_loop *loop, unsigned outer_mask,
noisy = false; noisy = false;
#endif #endif
if (assign && (!outer_assign | loop->inner)) if (assign && (!outer_assign || loop->inner))
{ {
/* Allocate outermost and non-innermost loops at the outermost /* Allocate outermost and non-innermost loops at the outermost
non-innermost available level. */ non-innermost available level. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment