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.
I'll commit it as obvious. 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 | 3 +-- gcc/config/lm32/lm32.cc | 2 +- gcc/cp/cp-tree.h | 2 +- gcc/cp/parser.cc | 2 +- gcc/rust/rust-diagnostics.h | 2 +- gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c | 12 ++++++------ gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c | 12 ++++++------ 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/gcc/config/i386/x86-tune-sched.cc b/gcc/config/i386/x86-tune-sched.cc index a51764e078c..685a83c4311 100644 --- a/gcc/config/i386/x86-tune-sched.cc +++ b/gcc/config/i386/x86-tune-sched.cc @@ -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; } - diff --git a/gcc/config/lm32/lm32.cc b/gcc/config/lm32/lm32.cc index 15728969fad..9ec756cd478 100644 --- a/gcc/config/lm32/lm32.cc +++ b/gcc/config/lm32/lm32.cc @@ -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 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 583d0496364..a839ad6d28a 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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 diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index 69c27aa7b6e..171ea2c81e0 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -32296,7 +32296,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. */ diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index 42f3ba7fc6d..a13dc6a2eaf 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -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) diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c index 731c0d880aa..4a3329042bc 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c @@ -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 diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c index 2a5a7602004..a904bf0de49 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c @@ -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 -- 2.44.0