diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-20 15:22:24 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-05-21 20:01:04 +0200 |
commit | 3a285ebd0cf5ab762726018515d23280fa6dd445 (patch) | |
tree | 3fdd6944fe8e104d87015f5acf4bdf42a178c641 /gcc/omp-low.c | |
parent | f6f45309d9fc140006886456b291e4ac24812cea (diff) | |
download | gcc-3a285ebd0cf5ab762726018515d23280fa6dd445.zip gcc-3a285ebd0cf5ab762726018515d23280fa6dd445.tar.gz gcc-3a285ebd0cf5ab762726018515d23280fa6dd445.tar.bz2 |
[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.
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index da827ef..a86c6c1 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -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); |