[committed] Reword a comment in varpool_node::ctor_useable_for_folding_p.

Message ID 20200118125219.5447A33E08@hamza.pair.com
State New
Headers show
Series
  • [committed] Reword a comment in varpool_node::ctor_useable_for_folding_p.
Related show

Commit Message

Gerald Pfeifer Jan. 18, 2020, 12:52 p.m.
2019-01-18  Gerald Pfeifer  <gerald@pfeifer.com>

	* varpool.c (ctor_useable_for_folding_p): Fix grammar.
---
 gcc/ChangeLog | 4 ++++
 gcc/varpool.c | 7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.24.1

Patch

diff --git a/gcc/varpool.c b/gcc/varpool.c
index e5d632e0eb5..458cdf1bf37 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -352,9 +352,10 @@  varpool_node::ctor_useable_for_folding_p (void)
       return DECL_INITIAL (real_node->decl) != NULL;
     }
 
-  /* Alias of readonly variable is also readonly, since the variable is stored
-     in readonly memory.  We also accept readonly aliases of non-readonly
-     locations assuming that user knows what he is asking for.  */
+  /* An alias of a read-only variable is also read-only, since the variable
+     is stored in read-only memory.  We also accept read-only aliases of
+     non-read-only locations assuming that the user knows what he is asking
+     for.  */
   if (!TREE_READONLY (decl) && !TREE_READONLY (real_node->decl))
     return false;