public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] Fortran: Fix OpenMP clause name in error message
@ 2022-08-30 19:54 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2022-08-30 19:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:44d5246bae8013e34f0fb2ff500d93e27f14f91f
commit 44d5246bae8013e34f0fb2ff500d93e27f14f91f
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Tue Aug 30 21:51:36 2022 +0200
Fortran: Fix OpenMP clause name in error message
gcc/fortran/ChangeLog:
* openmp.cc (gfc_check_omp_requires): Fix clause name in error.
Co-authored-by: Chung-Lin Tang <cltang@codesourcery.com>
(cherry picked from commit 8af266501795dd76d05faef498dbd3472a01b305)
Diff:
---
gcc/fortran/ChangeLog.omp | 8 ++++++++
gcc/fortran/openmp.cc | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/fortran/ChangeLog.omp b/gcc/fortran/ChangeLog.omp
index b7ccae31907..f623b7201bb 100644
--- a/gcc/fortran/ChangeLog.omp
+++ b/gcc/fortran/ChangeLog.omp
@@ -1,3 +1,11 @@
+2022-08-30 Tobias Burnus <tobias@codesourcery.com>
+
+ Backport from mainline:
+ 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
+ Chung-Lin Tang <cltang@codesourcery.com>
+
+ * openmp.cc (gfc_check_omp_requires): Fix clause name in error.
+
2022-08-23 Tobias Burnus <tobias@codesourcery.com>
Backport from mainline:
diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc
index 771aa83979b..5b30238a8bb 100644
--- a/gcc/fortran/openmp.cc
+++ b/gcc/fortran/openmp.cc
@@ -6135,7 +6135,7 @@ gfc_check_omp_requires (gfc_namespace *ns, int ref_omp_requires)
if ((ref_omp_requires & OMP_REQ_REVERSE_OFFLOAD)
&& !(ns->omp_requires & OMP_REQ_REVERSE_OFFLOAD))
gfc_error ("Program unit at %L has OpenMP device constructs/routines "
- "but does not set !$OMP REQUIRES REVERSE_OFFSET but other "
+ "but does not set !$OMP REQUIRES REVERSE_OFFLOAD but other "
"program units do", &ns->proc_name->declared_at);
if ((ref_omp_requires & OMP_REQ_UNIFIED_ADDRESS)
&& !(ns->omp_requires & OMP_REQ_UNIFIED_ADDRESS))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-30 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 19:54 [gcc/devel/omp/gcc-12] Fortran: Fix OpenMP clause name in error message Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).