https://gcc.gnu.org/g:2903d5c28f1a87d4c536cb98d958f30809e54fdd

commit r16-8943-g2903d5c28f1a87d4c536cb98d958f30809e54fdd
Author: Jakub Jelinek <[email protected]>
Date:   Tue May 19 14:00:14 2026 +0200

    Fix up some typos [PR125348]
    
    The PR mentions some typos.  I've removed those which I saw also in
    Dhruv's patchset, here is the rest.
    
    2026-05-19  Jakub Jelinek  <[email protected]>
    
            PR other/125348
    gcc/
            * config/i386/i386-expand.cc (ix86_expand_builtin): Fix diagnostic
            typo, forth -> fourth.
    gcc/ada/
            * libgnat/s-regpat.ads: Fix comment spelling, paramter -> parameter.
    gcc/m2/
            * gm2-compiler/M2GenGCC.mod (PerformLastForIterator): Fix diagnostic
            typo, intemediate -> intermediate.
    gcc/testsuite/
            * gcc.target/i386/pr117416-2.c (prefetch_test): Adjust expected
            diagnostic spelling.
            * gdc.test/compilable/dtoh_TemplateDeclaration.d: Fix comment
            spelling, paramter -> parameter.
    
    Reviewed-by: Andrew Pinski <[email protected]>
    (cherry picked from commit 01e3a6a3d13b7e06e185031b1a0e25a1be404e65)

Diff:
---
 gcc/ada/libgnat/s-regpat.ads                                 | 2 +-
 gcc/config/i386/i386-expand.cc                               | 2 +-
 gcc/m2/gm2-compiler/M2GenGCC.mod                             | 4 ++--
 gcc/testsuite/gcc.target/i386/pr117416-2.c                   | 2 +-
 gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/ada/libgnat/s-regpat.ads b/gcc/ada/libgnat/s-regpat.ads
index 55457a448cc7..e4dd5f44df85 100644
--- a/gcc/ada/libgnat/s-regpat.ads
+++ b/gcc/ada/libgnat/s-regpat.ads
@@ -428,7 +428,7 @@ package System.Regpat is
    --
    --  This function raises Storage_Error if Matcher is too small to hold
    --  the resulting code (i.e. Matcher.Size has too small a value) only when
-   --  the paramter Error_When_Too_Small is set to True. Otherwise, no error
+   --  the parameter Error_When_Too_Small is set to True. Otherwise, no error
    --  will be raised and the required size will be placed in the
    --  Final_Code_Size parameter.
    --
diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
index 3cd79d3fb4ea..395f91ffdc33 100644
--- a/gcc/config/i386/i386-expand.cc
+++ b/gcc/config/i386/i386-expand.cc
@@ -15243,7 +15243,7 @@ ix86_expand_builtin (tree exp, rtx target, rtx 
subtarget,
        else
          {
            if (INTVAL (op3) != 0)
-             warning (0, "invalid forth argument to"
+             warning (0, "invalid fourth argument to"
                          " %<__builtin_ia32_prefetch%>; using zero");
 
            if (!address_operand (op0, VOIDmode))
diff --git a/gcc/m2/gm2-compiler/M2GenGCC.mod b/gcc/m2/gm2-compiler/M2GenGCC.mod
index 7877b04b8030..69c113de9644 100644
--- a/gcc/m2/gm2-compiler/M2GenGCC.mod
+++ b/gcc/m2/gm2-compiler/M2GenGCC.mod
@@ -566,7 +566,7 @@ BEGIN
          IF TreeOverflow (incrtree)
          THEN
             MetaErrorT0 (lastpos,
-                         'the intemediate calculation for the last iterator 
value in the {%kFOR} loop has caused an overflow') ;
+                         'the intermediate calculation for the last iterator 
value in the {%kFOR} loop has caused an overflow') ;
             NoChange := FALSE ;
             SubQuad (quad) ;
             success := FALSE
@@ -585,7 +585,7 @@ BEGIN
          IF TreeOverflow (incrtree)
          THEN
             MetaErrorT0 (lastpos,
-                         'the intemediate calculation for the last iterator 
value in the {%kFOR} loop has caused an overflow') ;
+                         'the intermediate calculation for the last iterator 
value in the {%kFOR} loop has caused an overflow') ;
             NoChange := FALSE ;
             SubQuad (quad) ;
             success := FALSE
diff --git a/gcc/testsuite/gcc.target/i386/pr117416-2.c 
b/gcc/testsuite/gcc.target/i386/pr117416-2.c
index 07799e36cfe1..ae5afbf2a0b4 100644
--- a/gcc/testsuite/gcc.target/i386/pr117416-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr117416-2.c
@@ -9,5 +9,5 @@ void* p;
 void extern
 prefetch_test (void)
 {
-  __builtin_ia32_prefetch (p, 0, 0, 2); /* { dg-warning "invalid forth 
argument to '__builtin_ia32_prefetch'; using zero" } */
+  __builtin_ia32_prefetch (p, 0, 0, 2); /* { dg-warning "invalid fourth 
argument to '__builtin_ia32_prefetch'; using zero" } */
 }
diff --git a/gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d 
b/gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d
index 45b5530831aa..b3f082ca7dbd 100644
--- a/gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d
+++ b/gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d
@@ -336,7 +336,7 @@ struct NotAA(T)
     T[foo(1)] calcBuffer;
 }
 
-// Same name but hidden by the template paramter
+// Same name but hidden by the template parameter
 extern (D) struct Buffer {}
 extern (D) struct ActualBuffer {}

Reply via email to