This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [COMMITTED] Be more explicit.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 May 2014 13:34:25 +0200
- Subject: Re: [COMMITTED] Be more explicit.
- Authentication-results: sourceware.org; auth=none
- References: <1400843293-14348-1-git-send-email-thomas at codesourcery dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, May 23, 2014 at 01:08:09PM +0200, Thomas Schwinge wrote:
> @@ -5683,7 +5683,14 @@ 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_TASK) != 0)
> + if (ctx->region_type == ORT_PARALLEL
> + || ctx->region_type == ORT_COMBINED_PARALLEL)
This should have been (ctx->region_type & ORT_PARALLEL) != 0 instead.
Jakub