diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-03-07 20:46:11 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-03-07 20:46:11 +0100 |
commit | 90a0bf4e029b1ff3d7e7dfc6f98da88356587959 (patch) | |
tree | 02abd3b5296ff04e5f4777a2bd13cdb03d76c567 /gcc/gimplify.c | |
parent | 459d21c6cffb2c74d2644e21db372ba8a0c27eb6 (diff) | |
download | gcc-90a0bf4e029b1ff3d7e7dfc6f98da88356587959.zip gcc-90a0bf4e029b1ff3d7e7dfc6f98da88356587959.tar.gz gcc-90a0bf4e029b1ff3d7e7dfc6f98da88356587959.tar.bz2 |
re PR translation/79999 (possible typo in gimplify.c: depend(sink:))
PR translation/79999
* gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
depend clause with source (or sink) modifier.
* omp-expand.c (expand_omp_ordered_sink): Likewise.
* c-c++-common/gomp/doacross-1.c: Adjust expected diagnostics.
* c-c++-common/gomp/doacross-3.c: New test.
From-SVN: r269468
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index fa85b1c..6d7a314 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -12145,8 +12145,8 @@ gimplify_omp_ordered (tree expr, gimple_seq body) if (!fail && i != gimplify_omp_ctxp->loop_iter_var.length () / 2) { error_at (OMP_CLAUSE_LOCATION (c), - "number of variables in %<depend(sink)%> " - "clause does not match number of " + "number of variables in %<depend%> clause with " + "%<sink%> modifier does not match number of " "iteration variables"); failures++; } @@ -12158,8 +12158,8 @@ gimplify_omp_ordered (tree expr, gimple_seq body) if (source_c) { error_at (OMP_CLAUSE_LOCATION (c), - "more than one %<depend(source)%> clause on an " - "%<ordered%> construct"); + "more than one %<depend%> clause with %<source%> " + "modifier on an %<ordered%> construct"); failures++; } else @@ -12169,8 +12169,9 @@ gimplify_omp_ordered (tree expr, gimple_seq body) if (source_c && sink_c) { error_at (OMP_CLAUSE_LOCATION (source_c), - "%<depend(source)%> clause specified together with " - "%<depend(sink:)%> clauses on the same construct"); + "%<depend%> clause with %<source%> modifier specified " + "together with %<depend%> clauses with %<sink%> modifier " + "on the same construct"); failures++; } |