Fix comment typos

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.
This commit is contained in:
Simon Martin 2025-03-06 20:36:26 +01:00
parent f870302515
commit be0942afb3
7 changed files with 17 additions and 18 deletions

View 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;
}

View 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

View 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

View 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. */

View 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)

View 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

View 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