From: Marek Polacek Date: Thu, 17 Aug 2017 09:35:46 +0000 (+0000) Subject: gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cca6b724cdcca931237f0d513490eebfe110927e;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bed451652a7..26eb5451121 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 86623e09f5d..e52d7dcddaf 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))