aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-05-25 10:39:31 -0400
committerAndrew MacLeod <amacleod@redhat.com>2022-05-25 10:39:31 -0400
commit761cc32e5a1c762f91904d2a86980f106a5bc441 (patch)
tree48dbc655038fc8eb8c399c1ff3cab64b31dc049e /gcc
parent156d7d8dbc8d65d3958486bc4112a7279935e47d (diff)
downloadgcc-761cc32e5a1c762f91904d2a86980f106a5bc441.zip
gcc-761cc32e5a1c762f91904d2a86980f106a5bc441.tar.gz
gcc-761cc32e5a1c762f91904d2a86980f106a5bc441.tar.bz2
Tweak comments.
Adjust some mispellings in comments. * gimple-range-cache.cc: Adjust comments. * gimple-range-infer.cc: Adjust comments. * gimple-range-infer.h: Adjust comments. * gimple-range.cc: Adjust comments.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimple-range-cache.cc2
-rw-r--r--gcc/gimple-range-infer.cc2
-rw-r--r--gcc/gimple-range-infer.h4
-rw-r--r--gcc/gimple-range.cc2
4 files changed, 5 insertions, 5 deletions
diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc
index 5d5e2bf..6e73ac7 100644
--- a/gcc/gimple-range-cache.cc
+++ b/gcc/gimple-range-cache.cc
@@ -1440,7 +1440,7 @@ ranger_cache::apply_inferred_ranges (gimple *s)
if (infer.num () == 0)
return;
- // Do not update the on-netry cache for block ending stmts.
+ // Do not update the on-entry cache for block ending stmts.
if (stmt_ends_bb_p (s))
{
edge_iterator ei;
diff --git a/gcc/gimple-range-infer.cc b/gcc/gimple-range-infer.cc
index 8e25830..545d4f2 100644
--- a/gcc/gimple-range-infer.cc
+++ b/gcc/gimple-range-infer.cc
@@ -120,7 +120,7 @@ gimple_infer_range::gimple_infer_range (gimple *s)
// -------------------------------------------------------------------------
-// This class is an element in list of infered ranges.
+// This class is an element in the list of infered ranges.
class exit_range
{
diff --git a/gcc/gimple-range-infer.h b/gcc/gimple-range-infer.h
index 6294367..412958f 100644
--- a/gcc/gimple-range-infer.h
+++ b/gcc/gimple-range-infer.h
@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
// This class manages an on-demand summary of inferred ranges for a statement.
// It can be instantiated as required and provides a list of inferred ranges.
-// New inferred ranges should added in the constructor of this class.
+// New inferred ranges should be added in the constructor of this class.
class gimple_infer_range
{
@@ -49,7 +49,7 @@ private:
// This class manages a list of inferred ranges for each basic block.
// As inferences are made, they can be registered to a block and later
-// queried. WHen constructed with a TRUE flag, immediate uses chains are
+// queried. When constructed with a TRUE flag, immediate uses chains are
// followed the first time a name is referenced and block populated if
// there are any inferred ranges.
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index 08a9c01..53f4865 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -118,7 +118,7 @@ gimple_ranger::range_of_expr (irange &r, tree expr, gimple *stmt)
// If name is defined in this block, try to get an range from S.
if (def_stmt && gimple_bb (def_stmt) == bb)
{
- // Declared in ths block, if it has a global set, check for an
+ // Declared in this block, if it has a global set, check for an
// override from a block walk, otherwise calculate it.
if (m_cache.get_global_range (r, expr))
m_cache.block_range (r, bb, expr, false);