aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2017-08-17 09:35:46 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2017-08-17 09:35:46 +0000
commitcca6b724cdcca931237f0d513490eebfe110927e (patch)
tree26533f608bd3e51ab8f2c76c499d98a1e92b34cd /gcc/gimplify.c
parent344be1fd47d7d64ea85c159b14745ba107ce71ae (diff)
downloadgcc-cca6b724cdcca931237f0d513490eebfe110927e.zip
gcc-cca6b724cdcca931237f0d513490eebfe110927e.tar.gz
gcc-cca6b724cdcca931237f0d513490eebfe110927e.tar.bz2
gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
* gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1. From-SVN: r251142
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 86623e0..e52d7dc 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -8915,7 +8915,7 @@ gimplify_adjust_omp_clauses (gimple_seq *pre_p, gimple_seq body, tree *list_p,
OMP_CLAUSE_SHARED_READONLY (c) = 1;
else if (DECL_P (decl)
&& ((OMP_CLAUSE_CODE (c) == OMP_CLAUSE_SHARED
- && (n->value & GOVD_WRITTEN) != 1)
+ && (n->value & GOVD_WRITTEN) != 0)
|| (OMP_CLAUSE_CODE (c) == OMP_CLAUSE_LINEAR
&& !OMP_CLAUSE_LINEAR_NO_COPYOUT (c)))
&& omp_shared_to_firstprivate_optimizable_decl_p (decl))