]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
OpenMP: Fix typo in atomic directive error message
authorSandra Loosemore <sloosemore@baylibre.com>
Sun, 26 Jan 2025 16:02:54 +0000 (16:02 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Sun, 26 Jan 2025 16:10:48 +0000 (16:10 +0000)
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
gcc/testsuite/gfortran.dg/gomp/atomic-26.f90

index be78aa1ab27582e7efb97dc07c345af80974daf2..7875341b2cfa54a15b51584a6cd6651efbe616f2 100644 (file)
@@ -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)
index 6448bd9b8bb36999c3464d35c015d41b97849d95..3d88cd72d8dcec5119cae417e066bdf8d97b794b 100644 (file)
@@ -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