This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix some typos
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 8 Nov 2019 00:23:51 +0100
- Subject: [committed] Fix some typos
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've noticed a comment typo in build_vec_delete_1 and when grepping
around if the same typo isn't elsewhere, I found a different typo
elsewhere.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
committed to trunk as obvious.
2019-11-08 Jakub Jelinek <jakub@redhat.com>
* ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
typo - mistmatch -> mismatch.
* ipa-profile.c (ipa_profile): Likewise.
* ipa-devirt.c (compare_virtual_tables): Fix a comment typo
- mistmatch -> mismatch.
cp/
* init.c (build_vec_delete_1): Fix a comment typo - mist -> must.
--- gcc/ipa-utils.c.jj 2019-10-30 10:49:35.092045700 +0100
+++ gcc/ipa-utils.c 2019-11-07 15:40:21.803010506 +0100
@@ -518,7 +518,7 @@ ipa_merge_profiles (struct cgraph_node *
{
if (symtab->dump_file)
fprintf (symtab->dump_file,
- "Edge count mistmatch for bb %i.\n",
+ "Edge count mismatch for bb %i.\n",
srcbb->index);
match = false;
break;
@@ -531,7 +531,7 @@ ipa_merge_profiles (struct cgraph_node *
{
if (symtab->dump_file)
fprintf (symtab->dump_file,
- "Succ edge mistmatch for bb %i.\n",
+ "Succ edge mismatch for bb %i.\n",
srce->dest->index);
match = false;
break;
--- gcc/ipa-profile.c.jj 2019-10-30 10:49:37.170013777 +0100
+++ gcc/ipa-profile.c 2019-11-07 15:40:02.111304179 +0100
@@ -613,7 +613,7 @@ ipa_profile (void)
if (dump_file)
fprintf (dump_file,
"Not speculating: "
- "parameter count mistmatch\n");
+ "parameter count mismatch\n");
}
else if (e->indirect_info->polymorphic
&& !opt_for_fn (n->decl, flag_devirtualize)
--- gcc/ipa-devirt.c.jj 2019-11-05 08:40:44.824281200 +0100
+++ gcc/ipa-devirt.c 2019-11-07 15:39:43.658579375 +0100
@@ -808,7 +808,7 @@ compare_virtual_tables (varpool_node *pr
return;
}
- /* And in the last case we have either mistmatch in between two virtual
+ /* And in the last case we have either mismatch in between two virtual
methods or two virtual table pointers. */
auto_diagnostic_group d;
if (warning_at (DECL_SOURCE_LOCATION
--- gcc/cp/init.c.jj 2019-11-02 00:26:48.995846401 +0100
+++ gcc/cp/init.c 2019-11-07 15:39:16.651982139 +0100
@@ -4060,7 +4060,7 @@ build_vec_delete_1 (tree base, tree maxi
else if (!body)
body = deallocate_expr;
else
- /* The delete operator mist be called, even if a destructor
+ /* The delete operator must be called, even if a destructor
throws. */
body = build2 (TRY_FINALLY_EXPR, void_type_node, body, deallocate_expr);
Jakub