aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-05-23 14:06:48 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2014-05-23 14:06:48 +0200
commit09af4b4c423bf47d4b7dbcf1fc8ebd31a3a1769d (patch)
tree7edff34527921bf04bc558b665f69b6633158261 /gcc/gimplify.c
parentcfbe41d07e28630425cab4da95b482097c964810 (diff)
downloadgcc-09af4b4c423bf47d4b7dbcf1fc8ebd31a3a1769d.zip
gcc-09af4b4c423bf47d4b7dbcf1fc8ebd31a3a1769d.tar.gz
gcc-09af4b4c423bf47d4b7dbcf1fc8ebd31a3a1769d.tar.bz2
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
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 39b2750..654b05c 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -5683,8 +5683,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code)
switch (default_kind)
{
case OMP_CLAUSE_DEFAULT_NONE:
- if (ctx->region_type == ORT_PARALLEL
- || ctx->region_type == ORT_COMBINED_PARALLEL)
+ if ((ctx->region_type & ORT_PARALLEL) != 0)
{
error ("%qE not specified in enclosing parallel",
DECL_NAME (lang_hooks.decls.omp_report_decl (decl)));