From e2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 18 Mar 2014 10:06:55 +0100 Subject: [PATCH] Restore check for OpenMP for construct. gcc/ * omp-low.c (lower_rec_input_clauses) : Restore check for GF_OMP_FOR_KIND_FOR. From-SVN: r208633 --- gcc/ChangeLog | 5 +++++ gcc/omp-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28ac7b6679a..a657e062af2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-03-18 Thomas Schwinge + + * omp-low.c (lower_rec_input_clauses) : Restore + check for GF_OMP_FOR_KIND_FOR. + 2013-03-18 Kirill Yukhin * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 24ef3c85e91..7cc398ea5c0 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)); }