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.
---
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 be78aa1ab27..7875341b2cf 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 6448bd9b8bb..3d88cd72d8d 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
--
2.34.1