]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix comment typos
authorSimon Martin <simon@nasilyan.com>
Thu, 6 Mar 2025 19:36:26 +0000 (20:36 +0100)
committerSimon Martin <simon@nasilyan.com>
Thu, 6 Mar 2025 19:36:26 +0000 (20:36 +0100)
While investigating PR c++/99538 I noticed two comment typos: "delared"
and "paramter". The first has a single occurrence, but the second a few
more. This patch fixes all of them.

gcc/ChangeLog:

* config/i386/x86-tune-sched.cc (ix86_fuse_mov_alu_p): Fix
comment typo, paramter -> parameter.
* config/lm32/lm32.cc (lm32_std_gimplify_va_arg_expr): Likewise.

gcc/cp/ChangeLog:

* cp-tree.h (processing_contract_condition): Fix comment typo,
paramter -> parameter.
* parser.cc (cp_parser_requires_expression): Fix comment typo,
delared -> declared.

gcc/rust/ChangeLog:

* rust-diagnostics.h (RUST_ATTRIBUTE_GCC_DIAG): Fix comment
typo, paramter -> parameter.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/ppc64-abi-1.c: Fix comment typos, paramter
-> parameter.
* gcc.target/powerpc/ppc64-abi-2.c: Likewise.

gcc/config/i386/x86-tune-sched.cc
gcc/config/lm32/lm32.cc
gcc/cp/cp-tree.h
gcc/cp/parser.cc
gcc/rust/rust-diagnostics.h
gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c
gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c

index a51764e078c8749946ec05fca1b35f2ba8536c6c..685a83c4311b891b59edc0faf0ee02e3e2a98316 100644 (file)
@@ -633,7 +633,7 @@ ix86_fuse_mov_alu_p (rtx_insn *mov, rtx_insn *alu)
       && !REG_P (op1)
       && !x86_64_immediate_operand (op1, VOIDmode))
     return false;
-  /* Only one of two paramters must be move destination.  */
+  /* Only one of two parameters must be move destination.  */
   if (op1 && REG_P (op1) && REGNO (op1) == REGNO (reg))
     return false;
   return true;
@@ -786,4 +786,3 @@ ix86_macro_fusion_pair_p (rtx_insn *condgen, rtx_insn *condjmp)
 
   return true;
 }
-
index 15728969fadd8c72021e4c09c27bc33e848ed5bb..9ec756cd478de7cb98e23cb116d37862ab4d46d6 100644 (file)
@@ -831,7 +831,7 @@ lm32_builtin_va_start (tree valist, rtx nextarg)
 
 /*
  * This was copied from "standard" implementation of va_arg, and then
- * handling for overflow of the register paramters added
+ * handling for overflow of the register parameters added.
  */
 
 static tree
index 583d04963642f356852360edf0819fc8a0e0af3f..a839ad6d28acc76737835b3add8a9ca098cb7a45 100644 (file)
@@ -2025,7 +2025,7 @@ extern GTY(()) struct saved_scope *scope_chain;
 #define processing_omp_trait_property_expr scope_chain->x_processing_omp_trait_property_expr
 
 /* Nonzero if we are parsing the conditional expression of a contract
-   condition. These expressions appear outside the paramter list (like a
+   condition. These expressions appear outside the parameter list (like a
    trailing return type), but are potentially evaluated.  */
 
 #define processing_contract_condition scope_chain->x_processing_contract_condition
index 489c00e0522781fd5b649b6e15af5837fd05a855..c2b81fc281a80ba8ad89924ff8d5268306d7f478 100644 (file)
@@ -32299,7 +32299,7 @@ cp_parser_requires_expression (cp_parser *parser)
 
   tree parms, reqs;
   {
-    /* Local parameters are delared as variables within the scope
+    /* Local parameters are declared as variables within the scope
        of the expression.  They are not visible past the end of
        the expression.  Expressions within the requires-expression
        are unevaluated.  */
index 42f3ba7fc6d83ff748b8c0e669d9f8e4c75df045..a13dc6a2eaf8695d7ec97ff10a817c86bf1abf8a 100644 (file)
@@ -25,7 +25,7 @@
 #include "util/optional.h"
 
 // This macro is used to specify the position of format string & it's
-// arguments within the function's paramter list.
+// arguments within the function's parameter list.
 // 'm' specifies the position of the format string parameter.
 // 'n' specifies the position of the first argument for the format string.
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
index 731c0d880aa87b5456a91aa5d9938227a2429cc3..4a3329042bc4e83b8599d51d796cb0798a510d3c 100644 (file)
@@ -102,7 +102,7 @@ typedef struct sf
 } stack_frame_t;
 
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    l : gpr 4
    d : fpr 1
@@ -124,7 +124,7 @@ void __attribute__ ((noinline)) fcld_check (char *s, long l, double d)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    l : gpr 4
    d : fpr 2
@@ -152,7 +152,7 @@ fcldi_check (char *s, long l, double d, signed int i)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    l : gpr 4
    d : fpr 2
@@ -180,7 +180,7 @@ fcldu_check (char *s, long l, float d, unsigned int i)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    l : slot 1
    d : slot 2
@@ -216,7 +216,7 @@ void __attribute__ ((noinline)) fceld_check (char *s, ...)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    i : gpr 4
    j : gpr 5
@@ -288,7 +288,7 @@ typedef union
 } double_t;
 
 /* Example from ABI documentation with slight changes.
-   Paramter passing. 
+   Parameter passing. 
    c  : gpr 3
    ff : fpr 1
    d  : gpr 5
index 2a5a7602004921a8f73b524e7855f0316cc361ba..a904bf0de49187ba9e8fb5af51f99542482ee6d6 100644 (file)
@@ -124,7 +124,7 @@ typedef union
 #define MAKE_SLOT(x, y) ((long)y | ((long)x << 32))
 #endif
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    v : vpr 2
    i : gpr 7
@@ -143,7 +143,7 @@ fcvi (char *s, vector int v, int i)
   if ((long) i != lparms.gprs[4])
     abort();
 }
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    v : vpr 2
    w : vpr 3
@@ -170,7 +170,7 @@ fcvv (char *s, vector int v, vector int w)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    i : gpr 4
    v : vpr 2
@@ -200,7 +200,7 @@ fcivv (char *s, int i, vector int v, vector int w)
     abort ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    v : slot 2-3
    w : slot 4-5
@@ -236,7 +236,7 @@ fcevv (char *s, ...)
     abort();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    s : gpr 3
    i : gpr 4
    j : gpr 5
@@ -334,7 +334,7 @@ main()
   return main1 ();
 }
 
-/* Paramter passing.
+/* Parameter passing.
    Function called with no prototype.
    s : gpr 3
    v : vpr 2 gpr 5-6