https://gcc.gnu.org/g:50fb72d62ccf89a89a09f885014d990770c727d7

commit r15-7217-g50fb72d62ccf89a89a09f885014d990770c727d7
Author: Sandra Loosemore <sloosem...@baylibre.com>
Date:   Sun Jan 26 16:02:54 2025 +0000

    OpenMP: Fix typo in atomic directive error message
    
    gcc/fortran/ChangeLog
            * openmp.cc (resolve_omp_atomic): Fix typo in error message.
    
    gcc/testsuite/ChangeLog
            * gfortran.dg/gomp/atomic-26.f90: Correct expected output after
            fixing typo in error message.

Diff:
---
 gcc/fortran/openmp.cc                        | 2 +-
 gcc/testsuite/gfortran.dg/gomp/atomic-26.f90 | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc
index be78aa1ab275..7875341b2cfa 100644
--- a/gcc/fortran/openmp.cc
+++ b/gcc/fortran/openmp.cc
@@ -10410,7 +10410,7 @@ resolve_omp_atomic (gfc_code *code)
       gfc_intrinsic_op alt_op = INTRINSIC_NONE;
 
       if (atomic_code->ext.omp_clauses->fail != OMP_MEMORDER_UNSET)
-       gfc_error ("!$OMP ATOMIC UPDATE at %L with FAIL clause requiries either"
+       gfc_error ("!$OMP ATOMIC UPDATE at %L with FAIL clause requires either"
                   " the COMPARE clause or using the intrinsic MIN/MAX "
                   "procedure", &atomic_code->loc);
       switch (op)
diff --git a/gcc/testsuite/gfortran.dg/gomp/atomic-26.f90 
b/gcc/testsuite/gfortran.dg/gomp/atomic-26.f90
index 6448bd9b8bb3..3d88cd72d8dc 100644
--- a/gcc/testsuite/gfortran.dg/gomp/atomic-26.f90
+++ b/gcc/testsuite/gfortran.dg/gomp/atomic-26.f90
@@ -38,11 +38,11 @@ real function bar (y, e, f)
   v = d
   !$omp atomic fail(relaxed), write    ! { dg-error "FAIL clause is 
incompatible with READ or WRITE" }
   d = v
-  !$omp atomic fail(relaxed) update    ! { dg-error "FAIL clause requiries 
either the COMPARE clause or using the intrinsic MIN/MAX procedure" }
+  !$omp atomic fail(relaxed) update    ! { dg-error "FAIL clause requires 
either the COMPARE clause or using the intrinsic MIN/MAX procedure" }
   d = d + 3.0
-  !$omp atomic fail(relaxed)   ! { dg-error "FAIL clause requiries either the 
COMPARE clause or using the intrinsic MIN/MAX procedure" }
+  !$omp atomic fail(relaxed)   ! { dg-error "FAIL clause requires either the 
COMPARE clause or using the intrinsic MIN/MAX procedure" }
   d = d + 3.0
-  !$omp atomic capture fail(relaxed)   ! { dg-error "FAIL clause requiries 
either the COMPARE clause or using the intrinsic MIN/MAX procedure" }
+  !$omp atomic capture fail(relaxed)   ! { dg-error "FAIL clause requires 
either the COMPARE clause or using the intrinsic MIN/MAX procedure" }
   v = d; d = d + 3.0
   !$omp atomic read weak               ! { dg-error "WEAK clause requires 
COMPARE clause" }
   v = d

Reply via email to