From cca6b724cdcca931237f0d513490eebfe110927e Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 17 Aug 2017 09:35:46 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gimplify.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bed4516..26eb545 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-08-17 Marek Polacek + + * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of + 1. + 2017-08-17 Richard Biener * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p 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)) -- 2.7.4