public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1568] Fix spacing and typos in comments.
@ 2021-06-17 14:12 Andrew Macleod
  0 siblings, 0 replies; only message in thread
From: Andrew Macleod @ 2021-06-17 14:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8cbaa09333d3e338a438b067a0c18d2d9673fc1a

commit r12-1568-g8cbaa09333d3e338a438b067a0c18d2d9673fc1a
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Thu Jun 17 09:07:19 2021 -0400

    Fix spacing and typos in comments.
    
            * gimple-range-cache.cc: Comment cleanups.
            * gimple-range-gori.cc: Comment cleanups.
            * gimple-range.cc: Comment/spacing cleanups
            * value-range.h: Comment cleanups.

Diff:
---
 gcc/gimple-range-cache.cc |  2 +-
 gcc/gimple-range-gori.cc  |  2 +-
 gcc/gimple-range.cc       | 20 ++++++++------------
 gcc/value-range.h         |  2 +-
 4 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc
index cc2b7092dad..2c6e5bb2d38 100644
--- a/gcc/gimple-range-cache.cc
+++ b/gcc/gimple-range-cache.cc
@@ -385,7 +385,7 @@ block_range_cache::~block_range_cache ()
 }
 
 // Set the range for NAME on entry to block BB to R.
-// If it has not been // accessed yet, allocate it first.
+// If it has not been accessed yet, allocate it first.
 
 void
 block_range_cache::set_bb_range (tree name, const basic_block bb,
diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc
index 647f4964769..b58f2493b11 100644
--- a/gcc/gimple-range-gori.cc
+++ b/gcc/gimple-range-gori.cc
@@ -1065,7 +1065,7 @@ gori_compute::outgoing_edge_range_p (irange &r, edge e, tree name,
 		   e->src->index, e->dest->index);
 	  print_generic_expr (dump_file, name, TDF_SLIM);
 	}
-      // Simply calculate DEF_STMT on edge E usng the range query Q.
+      // Simply calculate DEF_STMT on edge E using the range query Q.
       fold_range (r, def_stmt, e, &q);
       if (dump_file && (dump_flags & TDF_DETAILS))
 	{
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index 15c65f16a32..624cfb12562 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -135,20 +135,18 @@ fur_edge::query ()
   return m_query;
 }
 
-
 // Instantiate a stmt based fur_source.
 
-
 fur_stmt::fur_stmt (gimple *s, range_query *q)
 {
-  m_stmt= s;
+  m_stmt = s;
   if (q)
     m_query = q;
   else
     m_query = get_global_range_query ();
 }
 
-// Retirenve range of EXPR as it occurs as a use on stmt M_STMT.
+// Retrieve range of EXPR as it occurs as a use on stmt M_STMT.
 
 bool
 fur_stmt::get_operand (irange &r, tree expr)
@@ -175,8 +173,8 @@ fur_stmt::query ()
   return m_query;
 }
 
-// This version of fur_source will pick a range from a stmt, and register
-// also dependencies via a gori_compute object.  This is mostly an internal API.
+// This version of fur_source will pick a range from a stmt, and also register
+// dependencies via a gori_compute object.  This is mostly an internal API.
 
 class fur_depend : public fur_stmt
 {
@@ -187,16 +185,16 @@ private:
   gori_compute *m_gori;
 };
 
-// Instantiate a stmt based fur_source witrh a GORI object
+// Instantiate a stmt based fur_source with a GORI object
+
 inline
 fur_depend::fur_depend (gimple *s, gori_compute *gori, range_query *q)
-							      : fur_stmt (s, q)
+  : fur_stmt (s, q)
 {
   gcc_checking_assert (gori);
   m_gori = gori;
 }
 
-
 // find and add any dependnecy between LHS and RHS
 
 void
@@ -205,7 +203,6 @@ fur_depend::register_dependency (tree lhs, tree rhs)
   m_gori->register_dependency (lhs, rhs);
 }
 
-
 // This version of fur_source will pick a range up from a list of ranges
 // supplied by the caller.
 
@@ -254,7 +251,7 @@ fur_list::fur_list (unsigned num, irange *list)
   m_limit = num;
 }
 
-// Get the next operand from the vector, ensure types are compatible,
+// Get the next operand from the vector, ensure types are compatible.
 
 bool
 fur_list::get_operand (irange &r, tree expr)
@@ -305,7 +302,6 @@ fold_range (irange &r, gimple *s, unsigned num_elements, irange *vector)
   return f.fold_stmt (r, s, src);
 }
 
-
 // Fold stmt S into range R using range query Q.
 
 bool
diff --git a/gcc/value-range.h b/gcc/value-range.h
index 3e58dad4e90..a8adc50b98e 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -657,7 +657,7 @@ irange_allocator::~irange_allocator ()
   obstack_free (&m_obstack, NULL);
 }
 
-// Provide a hunk of memory from the obstack
+// Provide a hunk of memory from the obstack.
 inline void *
 irange_allocator::get_memory (unsigned num_bytes)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-17 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 14:12 [gcc r12-1568] Fix spacing and typos in comments Andrew Macleod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).