mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
committed by
Jonathan Wakely
parent
3fcb690f3c
commit
b8cf951af8
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" } */
|
||||
|
||||
@@ -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" } */
|
||||
{}
|
||||
|
||||
@@ -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" } */
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user