https://gcc.gnu.org/g:b8cf951af8c66250e0eff0315e2d3d67e1225e41
commit r16-7966-gb8cf951af8c66250e0eff0315e2d3d67e1225e41 Author: Jonathan Wakely <[email protected]> Date: Mon Mar 9 23:30:24 2026 +0000 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. Diff: --- gcc/config/loongarch/loongarch-target-attr.cc | 4 ++-- gcc/fortran/primary.cc | 2 +- gcc/params.opt | 2 +- gcc/testsuite/g++.dg/ipa/devirt-15.C | 2 +- gcc/testsuite/gcc.target/loongarch/attr-check-error-message3.c | 2 +- gcc/testsuite/gcc.target/loongarch/attr-check-error-message4.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/loongarch/loongarch-target-attr.cc b/gcc/config/loongarch/loongarch-target-attr.cc index e35a31f50c61..13ad2ed37313 100644 --- a/gcc/config/loongarch/loongarch-target-attr.cc +++ b/gcc/config/loongarch/loongarch-target-attr.cc @@ -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; } diff --git a/gcc/fortran/primary.cc b/gcc/fortran/primary.cc index 6992e2a8fd76..9251f88d6d6a 100644 --- a/gcc/fortran/primary.cc +++ b/gcc/fortran/primary.cc @@ -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; } diff --git a/gcc/params.opt b/gcc/params.opt index 4420189e9822..72ac44dd773f 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -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 diff --git a/gcc/testsuite/g++.dg/ipa/devirt-15.C b/gcc/testsuite/g++.dg/ipa/devirt-15.C index 4a899d4178a6..a1901583606d 100644 --- a/gcc/testsuite/g++.dg/ipa/devirt-15.C +++ b/gcc/testsuite/g++.dg/ipa/devirt-15.C @@ -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" } */ diff --git a/gcc/testsuite/gcc.target/loongarch/attr-check-error-message3.c b/gcc/testsuite/gcc.target/loongarch/attr-check-error-message3.c index 663e64119390..7a9ead7be55a 100644 --- a/gcc/testsuite/gcc.target/loongarch/attr-check-error-message3.c +++ b/gcc/testsuite/gcc.target/loongarch/attr-check-error-message3.c @@ -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" } */ {} diff --git a/gcc/testsuite/gcc.target/loongarch/attr-check-error-message4.c b/gcc/testsuite/gcc.target/loongarch/attr-check-error-message4.c index 27565e994285..eeab5482c42f 100644 --- a/gcc/testsuite/gcc.target/loongarch/attr-check-error-message4.c +++ b/gcc/testsuite/gcc.target/loongarch/attr-check-error-message4.c @@ -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" } */ {}
