diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2020-01-18 13:49:05 +0100 |
---|---|---|
committer | Gerald Pfeifer <gerald@pfeifer.com> | 2020-01-18 13:49:05 +0100 |
commit | 5a715667bbb9b9e8a831c6ff2094ed8d2765d7db (patch) | |
tree | 4763bc22052d6fb7662ea9a5d43d934b4a8741a3 | |
parent | 7ebbff3acbe627c9286e2daed7751e6e6c8684e6 (diff) | |
download | gcc-5a715667bbb9b9e8a831c6ff2094ed8d2765d7db.zip gcc-5a715667bbb9b9e8a831c6ff2094ed8d2765d7db.tar.gz gcc-5a715667bbb9b9e8a831c6ff2094ed8d2765d7db.tar.bz2 |
Reword a comment in varpool_node::ctor_useable_for_folding_p.
* varpool.c (ctor_useable_for_folding_p): Fix grammar.
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/varpool.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 064bb38..6f05cdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-01-18 Gerald Pfeifer <gerald@pfeifer.com> + + * varpool.c (ctor_useable_for_folding_p): Fix grammar. + 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> * Makefile.in: Add coroutine-passes.o. diff --git a/gcc/varpool.c b/gcc/varpool.c index e5d632e..458cdf1 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; |