diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-02-28 11:16:33 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-02-28 11:16:33 +0100 |
commit | 48ca2185bfb5126baacab812b3f14c80123ccb88 (patch) | |
tree | 9fb5454a6a62c143ae0a18afab9b5372c9b949ab | |
parent | 3a77ca7d3647e6fbc34fe76aceb389d6fb95fdf4 (diff) | |
download | gcc-48ca2185bfb5126baacab812b3f14c80123ccb88.zip gcc-48ca2185bfb5126baacab812b3f14c80123ccb88.tar.gz gcc-48ca2185bfb5126baacab812b3f14c80123ccb88.tar.bz2 |
fortran: Fix up wording of 3 OpenMP diagnostic messages [PR99303]
As reported in the PR, some diagnostic messages need wording improvements.
2021-02-28 Jakub Jelinek <jakub@redhat.com>
PR fortran/99303
* openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
wordings.
(resolve_omp_clauses): Likewise.
-rw-r--r-- | gcc/fortran/openmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fortran/openmp.c b/gcc/fortran/openmp.c index bf01790..1f1920c 100644 --- a/gcc/fortran/openmp.c +++ b/gcc/fortran/openmp.c @@ -3788,11 +3788,11 @@ gfc_omp_requires_add_clause (gfc_omp_requires_kind clause, if (clause & OMP_REQ_ATOMIC_MEM_ORDER_MASK) gfc_error ("!$OMP REQUIRES clause %<atomic_default_mem_order(%s)%> " "specified via module %qs use at %L but same clause is " - "not set at for the program unit", clause_name, module_name, - loc); + "not specified for the program unit", clause_name, + module_name, loc); else gfc_error ("!$OMP REQUIRES clause %qs specified via module %qs use at " - "%L but same clause is not set at for the program unit", + "%L but same clause is not specified for the program unit", clause_name, module_name, loc); return false; } @@ -5411,7 +5411,7 @@ resolve_omp_clauses (gfc_code *code, gfc_omp_clauses *omp_clauses, if (has_inscan && has_notinscan && is_reduction) { gfc_error ("%<inscan%> and non-%<inscan%> %<reduction%> " - "clauses on the same construct %L", + "clauses on the same construct at %L", &n->where); break; } |