From: Dhruv Chawla <[email protected]>

Signed-off-by: Dhruv Chawla <[email protected]>

gcc/ChangeLog:

        * rtl-ssa/access-utils.h (drop_memory_access): Fix typos.
        * rtl-ssa/accesses.cc (clobber_info::recompute_group): Likewise.
        * rtl-ssa/accesses.h: Likewise.
        * rtl-ssa/blocks.cc (function_info::add_artificial_accesses): Likewise.
        * rtl-ssa/functions.h: Likewise.
        * rtl-ssa/insns.cc (function_info::record_use): Likewise.
        * rtl-ssa/insns.h: Likewise.
---
 gcc/rtl-ssa/access-utils.h | 4 ++--
 gcc/rtl-ssa/accesses.cc    | 2 +-
 gcc/rtl-ssa/accesses.h     | 2 +-
 gcc/rtl-ssa/blocks.cc      | 2 +-
 gcc/rtl-ssa/functions.h    | 4 ++--
 gcc/rtl-ssa/insns.cc       | 2 +-
 gcc/rtl-ssa/insns.h        | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/gcc/rtl-ssa/access-utils.h b/gcc/rtl-ssa/access-utils.h
index 769446584bc..4b14c0f5f77 100644
--- a/gcc/rtl-ssa/access-utils.h
+++ b/gcc/rtl-ssa/access-utils.h
@@ -19,7 +19,7 @@
 
 namespace rtl_ssa {
 
-// Return a referene to the whole of register REGNO.
+// Return a reference to the whole of register REGNO.
 inline resource_info
 full_register (unsigned int regno)
 {
@@ -79,7 +79,7 @@ drop_memory_access (T accesses)
 }
 
 // Filter ACCESSES to return an access_array of only those accesses that
-// satisfy PREDICATE.  Alocate the new array above WATERMARK.
+// satisfy PREDICATE.  Allocate the new array above WATERMARK.
 template<typename T, typename FilterPredicate>
 inline T
 filter_accesses (obstack_watermark &watermark,
diff --git a/gcc/rtl-ssa/accesses.cc b/gcc/rtl-ssa/accesses.cc
index bdba5f734d3..bb25436fb22 100644
--- a/gcc/rtl-ssa/accesses.cc
+++ b/gcc/rtl-ssa/accesses.cc
@@ -53,7 +53,7 @@ clobber_info::recompute_group ()
   gcc_checking_assert (m_parent);
 
   // If the previous splay operation did anything, this clobber is now an
-  // ancestor of CURSOR, and all the nodes inbetween have a stale group.
+  // ancestor of CURSOR, and all the nodes in between have a stale group.
   // Since we have visited the nodes, we might as well update them too.
   //
   // If the previous splay operation did nothing, start the update from
diff --git a/gcc/rtl-ssa/accesses.h b/gcc/rtl-ssa/accesses.h
index 257c6a2fd39..ec1f9ab0c07 100644
--- a/gcc/rtl-ssa/accesses.h
+++ b/gcc/rtl-ssa/accesses.h
@@ -664,7 +664,7 @@ using clobber_tree = clobber_info::splay_tree::rooted;
 //   which it dies, otherwise there is a fake live-out use at the end of
 //   the EBB.
 //
-// Since debug instructions should not affect codegen, they opportunisticly
+// Since debug instructions should not affect codegen, they opportunistically
 // attach to the same set_info as nondebug instructions where possible.
 // If a nondebug instruction would attach to a degenerate phi and if no
 // such phi exists, debug instructions instead attach to whichever set_info
diff --git a/gcc/rtl-ssa/blocks.cc b/gcc/rtl-ssa/blocks.cc
index 21ea9aa0452..85636da2aa9 100644
--- a/gcc/rtl-ssa/blocks.cc
+++ b/gcc/rtl-ssa/blocks.cc
@@ -941,7 +941,7 @@ function_info::add_artificial_accesses (build_info &bi, 
df_ref_flags flags)
   // Ensure that global registers and memory are live at the end of any
   // block that has no successors, such as the exit block and non-local gotos.
   // Global registers have to be singled out because they are not part of
-  // the DF artifical use list (they are instead treated as used within
+  // the DF artificial use list (they are instead treated as used within
   // every block).
   if (flags == 0 && EDGE_COUNT (cfg_bb->succs) == 0)
     {
diff --git a/gcc/rtl-ssa/functions.h b/gcc/rtl-ssa/functions.h
index 9417046230e..5893b86cb1f 100644
--- a/gcc/rtl-ssa/functions.h
+++ b/gcc/rtl-ssa/functions.h
@@ -153,7 +153,7 @@ public:
   // scope until the change has been aborted or successfully completed.
   obstack_watermark new_change_attempt () { return &m_temp_obstack; }
 
-  // SET and INSN belong to the same EBB, with SET occuring before INSN.
+  // SET and INSN belong to the same EBB, with SET occurring before INSN.
   // Return true if SET is still available at INSN.
   bool remains_available_at_insn (const set_info *set, insn_info *insn);
 
@@ -166,7 +166,7 @@ public:
   // available on entry to BB, without solving a full dataflow problem.
   // If all the values are already live on entry to BB or can be made
   // available there, return a use_array that describes the uses as
-  // if they occured at the start of BB.  These uses are purely temporary,
+  // if they occurred at the start of BB.  These uses are purely temporary,
   // and will not become permanent unless applied using change_insns.
   //
   // If the operation fails, return an invalid use_array.
diff --git a/gcc/rtl-ssa/insns.cc b/gcc/rtl-ssa/insns.cc
index b42acb9704b..c332119f11e 100644
--- a/gcc/rtl-ssa/insns.cc
+++ b/gcc/rtl-ssa/insns.cc
@@ -523,7 +523,7 @@ function_info::record_use (build_info &bi, insn_info *insn,
       // actually correct.
       auto value_is_valid = [&]()
        {
-         // Memmory always has a valid definition.
+         // Memory always has a valid definition.
          if (ref.is_mem ())
            return true;
 
diff --git a/gcc/rtl-ssa/insns.h b/gcc/rtl-ssa/insns.h
index 444b15d471d..04026ea3ec3 100644
--- a/gcc/rtl-ssa/insns.h
+++ b/gcc/rtl-ssa/insns.h
@@ -407,7 +407,7 @@ private:
   // MAX_RECOG_OPERANDS is the maximum number of pseudos that can be
   // defined by an instruction, so the number of definitions in a real
   // instruction should fit easily in 16 bits.  However, there are no
-  // limits on the number of definitions in artifical instructions.
+  // limits on the number of definitions in artificial instructions.
   unsigned int m_num_uses;
   unsigned int m_num_defs;
 
-- 
2.43.0

Reply via email to