]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: Fix OpenMP clause name in error message
authorTobias Burnus <tobias@codesourcery.com>
Tue, 30 Aug 2022 19:51:36 +0000 (21:51 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 30 Aug 2022 19:51:36 +0000 (21:51 +0200)
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)

gcc/fortran/ChangeLog.omp
gcc/fortran/openmp.cc

index b7ccae31907c701caadceefaf6f865f71f6db64d..f623b7201bbe320f67f32925f04af9a17d459693 100644 (file)
@@ -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:
index 771aa83979bc36b870e99a6194155f26374cd8bd..5b30238a8bbf9767fa125bfef4fd9609c2c80feb 100644 (file)
@@ -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))