[OpenACC privatization] Don't evaluate OpenMP 'for' clauses [PR90115]

gcc/
	PR middle-end/90115
	* omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
This commit is contained in:
Thomas Schwinge 2021-05-20 15:22:24 +02:00
parent f6f45309d9
commit 3a285ebd0c

View File

@ -11067,7 +11067,8 @@ lower_omp_for (gimple_stmt_iterator *gsi_p, omp_context *ctx)
push_gimplify_context ();
oacc_privatization_scan_clause_chain (ctx, gimple_omp_for_clauses (stmt));
if (is_gimple_omp_oacc (ctx->stmt))
oacc_privatization_scan_clause_chain (ctx, gimple_omp_for_clauses (stmt));
lower_omp (gimple_omp_for_pre_body_ptr (stmt), ctx);