aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-01-17 11:21:18 +0100
committerJakub Jelinek <jakub@redhat.com>2024-01-17 11:21:18 +0100
commit97089a54f7529a22ccfba3e59ba3b8192b0a5e18 (patch)
tree8bafe3e09402b118591baac314ef16d7aa0271be
parentc8f10456795c84bdbf45b1612321eb1f9b3c1415 (diff)
downloadgcc-97089a54f7529a22ccfba3e59ba3b8192b0a5e18.zip
gcc-97089a54f7529a22ccfba3e59ba3b8192b0a5e18.tar.gz
gcc-97089a54f7529a22ccfba3e59ba3b8192b0a5e18.tar.bz2
Fix comment typos
When looking at PR113410, I found a comment typo and just searched for the same typo elsewhere and found some typos in the comments which had that typo as well. 2024-01-17 Jakub Jelinek <jakub@redhat.com> * tree-into-ssa.cc (pass_build_ssa::gate): Fix comment typo, funcions -> functions, and use were instead of was. * gengtype.cc (dump_typekind): Fix comment typos, funcion -> function and guaranteee -> guarantee. * attribs.h (struct attr_access): Fix comment typo funcion -> function.
-rw-r--r--gcc/attribs.h2
-rw-r--r--gcc/gengtype.cc4
-rw-r--r--gcc/tree-into-ssa.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/gcc/attribs.h b/gcc/attribs.h
index 4d491e0..99c4575 100644
--- a/gcc/attribs.h
+++ b/gcc/attribs.h
@@ -324,7 +324,7 @@ struct attr_access
in TREE_VALUE and their positions in the argument list (stored
in TREE_PURPOSE). Each expression may be a PARM_DECL or some
other DECL (for ordinary variables), or an EXPR for other
- expressions (e.g., funcion calls). */
+ expressions (e.g., function calls). */
tree size;
/* The zero-based position of each of the formal function arguments.
diff --git a/gcc/gengtype.cc b/gcc/gengtype.cc
index c87153d..6623acc 100644
--- a/gcc/gengtype.cc
+++ b/gcc/gengtype.cc
@@ -4718,8 +4718,8 @@ write_roots (pair_p variables, bool emit_pch)
}
/* Prints not-as-ugly version of a typename of T to OF. Trades the uniquness
- guaranteee for somewhat increased readability. If name conflicts do happen,
- this funcion will have to be adjusted to be more like
+ guarantee for somewhat increased readability. If name conflicts do happen,
+ this function will have to be adjusted to be more like
output_mangled_typename. */
#define INDENT 2
diff --git a/gcc/tree-into-ssa.cc b/gcc/tree-into-ssa.cc
index 152b0396..242b11b2 100644
--- a/gcc/tree-into-ssa.cc
+++ b/gcc/tree-into-ssa.cc
@@ -2499,7 +2499,7 @@ public:
/* opt_pass methods: */
bool gate (function *fun) final override
{
- /* Do nothing for funcions that was produced already in SSA form. */
+ /* Do nothing for functions that were produced already in SSA form. */
return !(fun->curr_properties & PROP_ssa);
}