gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
authorMarek Polacek <polacek@redhat.com>
Thu, 17 Aug 2017 09:35:46 +0000 (09:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 17 Aug 2017 09:35:46 +0000 (09:35 +0000)
* gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of
1.

From-SVN: r251142

gcc/ChangeLog
gcc/gimplify.c

index bed451652a7c9c7f937a6833d32c295857dbeff9..26eb5451121ba0bc18913f7e8774010fecc47c77 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-17  Marek Polacek  <polacek@redhat.com>
+
+       * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of
+       1.
+
 2017-08-17  Richard Biener  <rguenther@suse.de>
 
        * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
index 86623e09f5d8ab898b1e497d321717e3778606ed..e52d7dcddaff646ecfd2512f192ddadabc86ea78 100644 (file)
@@ -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))