diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-11-09 21:19:58 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-11-09 21:19:58 +0100 |
commit | 4302dd3dffac6ff8e6bec66f18cf16b85bff5f6a (patch) | |
tree | 1530f2da2f8ab69aec57585a29a4355ae99cfe20 /gcc/gimplify.c | |
parent | c4c44802ab32fba9ea0305aa3db86fdffbe9e152 (diff) | |
download | gcc-4302dd3dffac6ff8e6bec66f18cf16b85bff5f6a.zip gcc-4302dd3dffac6ff8e6bec66f18cf16b85bff5f6a.tar.gz gcc-4302dd3dffac6ff8e6bec66f18cf16b85bff5f6a.tar.bz2 |
gimplify.c (gimplify_scan_omp_clauses): Call sorry_at for valid but unsupported lastprivate with conditional modifier.
* gimplify.c (gimplify_scan_omp_clauses): Call sorry_at for valid
but unsupported lastprivate with conditional modifier.
* c-c++-common/gomp/lastprivate-conditional-1.c: New test.
* c-c++-common/gomp/lastprivate-conditional-2.c: New test.
From-SVN: r265987
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 61dca24..d7cb784 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -8065,6 +8065,10 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, "%<lastprivate%> clause", decl); OMP_CLAUSE_LASTPRIVATE_CONDITIONAL (c) = 0; } + if (OMP_CLAUSE_LASTPRIVATE_CONDITIONAL (c)) + sorry_at (OMP_CLAUSE_LOCATION (c), + "%<conditional%> modifier on %<lastprivate%> clause " + "not supported yet"); if (outer_ctx && (outer_ctx->region_type == ORT_COMBINED_PARALLEL || ((outer_ctx->region_type & ORT_COMBINED_TEAMS) |