From: Sandra Loosemore Date: Sun, 26 Jan 2025 16:02:54 +0000 (+0000) Subject: OpenMP: Fix typo in atomic directive error message X-Git-Tag: basepoints/gcc-16~2336 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50fb72d62ccf89a89a09f885014d990770c727d7;p=thirdparty%2Fgcc.git 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 --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