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
This commit is contained in:
Thomas Schwinge 2014-03-18 10:06:55 +01:00 committed by Thomas Schwinge
parent 7c831c4d5a
commit e2110f8f2f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
* omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
check for GF_OMP_FOR_KIND_FOR.
2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
* config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add

View File

@ -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));
}