Commit 09af4b4c by Thomas Schwinge Committed by Thomas Schwinge

Be a bit less explicit.

	gcc/
	* gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
	Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.

From-SVN: r210860
parent cfbe41d0
2014-05-23 Thomas Schwinge <thomas@codesourcery.com> 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
* gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
* omp-low.c (expand_omp_for_static_chunk): Rename variable si to * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
gsi, and variables v_* to v*. gsi, and variables v_* to v*.
......
...@@ -5683,8 +5683,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code) ...@@ -5683,8 +5683,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code)
switch (default_kind) switch (default_kind)
{ {
case OMP_CLAUSE_DEFAULT_NONE: case OMP_CLAUSE_DEFAULT_NONE:
if (ctx->region_type == ORT_PARALLEL if ((ctx->region_type & ORT_PARALLEL) != 0)
|| ctx->region_type == ORT_COMBINED_PARALLEL)
{ {
error ("%qE not specified in enclosing parallel", error ("%qE not specified in enclosing parallel",
DECL_NAME (lang_hooks.decls.omp_report_decl (decl))); DECL_NAME (lang_hooks.decls.omp_report_decl (decl)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment