]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix up some typos [PR125348]
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 May 2026 12:00:14 +0000 (14:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 May 2026 12:02:33 +0000 (14:02 +0200)
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  <jakub@redhat.com>

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 <andrew.pinski@oss.qualcomm.com>
gcc/ada/libgnat/s-regpat.ads
gcc/config/i386/i386-expand.cc
gcc/m2/gm2-compiler/M2GenGCC.mod
gcc/testsuite/gcc.target/i386/pr117416-2.c
gcc/testsuite/gdc.test/compilable/dtoh_TemplateDeclaration.d

index 55457a448cc7334cbfff16e8b17d571b332df4fb..e4dd5f44df85123eaa1f28719be962d61501c8af 100644 (file)
@@ -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.
    --
index e278b02ffefdc7f9fa72f8d184932b53099ffa1b..2c366329107df6fc54a47c1a3eb32d92fe363698 100644 (file)
@@ -15307,7 +15307,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))
index 7877b04b80309212497ec1d2a58cf13c10510db6..69c113de964429a7ec86ef293acbee8b17dd3edf 100644 (file)
@@ -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
index 07799e36cfe1579b1c1cecc7c940eb4bd008a643..ae5afbf2a0b4489b539bb734400ee5baea0ac234 100644 (file)
@@ -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" } */
 }
index 45b5530831aaf85084bf00249ccb547c433adbd9..b3f082ca7dbd53687f34232c40e7dfd46f15247f 100644 (file)
@@ -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 {}