translation: Fix typos in diagnostics [PR124422]

PR translation/124422

gcc/ChangeLog:

	* config/loongarch/loongarch-target-attr.cc
	(loongarch_parse_fmv_features): Fix spelling in diagnostics.
	* params.opt (max-devirt-targets): Fix typo in description.

gcc/fortran/ChangeLog:

	* primary.cc (gfc_match_varspec): Fix spelling in diagnostic.

gcc/testsuite/ChangeLog:

	* g++.dg/ipa/devirt-15.C: Fix spelling in comment.
	* gcc.target/loongarch/attr-check-error-message3.c: Adjust
	dg-error to match fixed spelling.
	* gcc.target/loongarch/attr-check-error-message4.c: Likewise.
This commit is contained in:
Jonathan Wakely
2026-03-09 23:30:24 +00:00
committed by Jonathan Wakely
parent 3fcb690f3c
commit b8cf951af8
6 changed files with 7 additions and 7 deletions

View File

@@ -553,7 +553,7 @@ loongarch_parse_fmv_features (tree decl, string_slice str,
if (attr_str.empty ())
{
error_at (loc, "characher before %<;%> in attribute %qs cannot be empty",
error_at (loc, "character before %<;%> in attribute %qs cannot be empty",
attr_str.begin ());
return false;
}
@@ -573,7 +573,7 @@ loongarch_parse_fmv_features (tree decl, string_slice str,
if (str.is_valid ())
{
error_at (loc, "in attribute %qs the number of reatures "
error_at (loc, "in attribute %qs the number of features "
"cannot exceed two", attr_str.begin ());
return false;
}

View File

@@ -2733,7 +2733,7 @@ gfc_match_varspec (gfc_expr *primary, int equiv_flag, bool sub_flag,
if (previous && inquiry
&& (previous->attr.pdt_kind || previous->attr.pdt_len))
{
gfc_error_now ("R901: A type parameter ref is not a designtor and "
gfc_error_now ("R901: A type parameter ref is not a designator and "
"cannot be followed by the type inquiry ref at %C");
return MATCH_ERROR;
}

View File

@@ -588,7 +588,7 @@ Maximum number of active local stores in RTL dead store elimination.
-param=max-devirt-targets=
Common Joined UInteger Var(param_max_devirt_targets) Init(3) Param Optimization
Maximum number of targets to devirutalize.
Maximum number of targets to devirtualize.
-param=max-early-inliner-iterations=
Common Joined UInteger Var(param_early_inliner_max_iterations) Init(1) Param Optimization

View File

@@ -1,4 +1,4 @@
/* Check that we speculatively devirutalize call to FOO to B::foo becuase
/* Check that we speculatively devirtualize call to FOO to B::foo becuase
A is noreturn. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-devirt-details -fdump-tree-optimized" } */

View File

@@ -2,5 +2,5 @@
/* { dg-options "-O2 -Wno-attributes" } */
__attribute__ ((target_clones ("default",";priority=1"))) void
test (void) /* { dg-error "characher before \\\';\\\' in attribute \\\';priority=1\\\' cannot be empty" } */
test (void) /* { dg-error "character before \\\';\\\' in attribute \\\';priority=1\\\' cannot be empty" } */
{}

View File

@@ -2,5 +2,5 @@
/* { dg-options "-O2 -Wno-attributes" } */
__attribute__ ((target_clones ("default","lsx;priority=1;lasx"))) void
test (void) /* { dg-error "in attribute \\\'lsx;priority=1;lasx\\\' the number of reatures cannot exceed two" } */
test (void) /* { dg-error "in attribute \\\'lsx;priority=1;lasx\\\' the number of features cannot exceed two" } */
{}