aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-03-18 10:06:55 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2014-03-18 10:06:55 +0100
commite2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629 (patch)
tree50d01ae69a49ad9ddc16ba1aa4f33647ff463ced /gcc/omp-low.c
parent7c831c4d5abd981b9f1f95cf714fff7b445489d1 (diff)
downloadgcc-e2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629.zip
gcc-e2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629.tar.gz
gcc-e2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629.tar.bz2
Restore check for OpenMP for construct.
gcc/ * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore check for GF_OMP_FOR_KIND_FOR. From-SVN: r208633
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 24ef3c8..7cc398e 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -3672,7 +3672,7 @@ lower_rec_input_clauses (tree clauses, gimple_seq *ilist, gimple_seq *dlist,
/* Don't add any barrier for #pragma omp simd or
#pragma omp distribute. */
if (gimple_code (ctx->stmt) != GIMPLE_OMP_FOR
- || gimple_omp_for_kind (ctx->stmt) & GF_OMP_FOR_KIND_FOR)
+ || gimple_omp_for_kind (ctx->stmt) == GF_OMP_FOR_KIND_FOR)
gimple_seq_add_stmt (ilist, build_omp_barrier (NULL_TREE));
}