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/omp-expand.c | |
parent | 459d21c6cffb2c74d2644e21db372ba8a0c27eb6 (diff) |
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/omp-expand.c')
-rw-r--r-- | gcc/omp-expand.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/omp-expand.c b/gcc/omp-expand.c index 5c2dba9d1c5..89a3a323267 100644 --- a/gcc/omp-expand.c +++ b/gcc/omp-expand.c @@ -2147,8 +2147,8 @@ expand_omp_ordered_sink (gimple_stmt_iterator *gsi, struct omp_for_data *fd, forward = tree_int_cst_sgn (step) != -1; } if (forward ^ OMP_CLAUSE_DEPEND_SINK_NEGATIVE (deps)) - warning_at (loc, 0, "%<depend(sink)%> clause waiting for " - "lexically later iteration"); + warning_at (loc, 0, "%<depend%> clause with %<sink%> modifier " + "waiting for lexically later iteration"); break; } deps = TREE_CHAIN (deps); @@ -2284,8 +2284,9 @@ expand_omp_ordered_sink (gimple_stmt_iterator *gsi, struct omp_for_data *fd, build_int_cst (itype, 0)); if (integer_zerop (t) && !warned_step) { - warning_at (loc, 0, "%<depend(sink)%> refers to iteration never " - "in the iteration space"); + warning_at (loc, 0, "%<depend%> clause with %<sink%> modifier " + "refers to iteration never in the iteration " + "space"); warned_step = true; } cond = fold_build2_loc (loc, BIT_AND_EXPR, boolean_type_node, |