[binutils-gdb] [PATCH] gas: Fix comment on definition of frag_grow()

Nick Clifton nickc@sourceware.org
Thu May 28 13:31:12 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e85f042a6eda1cd96cc95e66f80db95f28d4557

commit 9e85f042a6eda1cd96cc95e66f80db95f28d4557
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu May 28 14:30:34 2020 +0100

    [PATCH] gas: Fix comment on definition of frag_grow()
    
            * frags.c (frag_grow): Fix comment.

Diff:
---
 gas/ChangeLog | 4 ++++
 gas/frags.c   | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index c0b3dc88036..2f719e7c8c1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-28  Alex Coplan  <alex.coplan@arm.com>
+
+	* frags.c (frag_grow): Fix comment.
+
 2020-05-27  Stephen Casner  <casner@acm.org>
 
 	PR gas/26001
diff --git a/gas/frags.c b/gas/frags.c
index 12cbe6c671b..c926ec3ba1e 100644
--- a/gas/frags.c
+++ b/gas/frags.c
@@ -89,9 +89,9 @@ frag_alloc (struct obstack *ob)
 }
 
 /* Try to augment current frag by nchars chars.
-   If there is no room, close of the current frag with a ".fill 0"
-   and begin a new frag. Unless the new frag has nchars chars available
-   do not return. Do not set up any fields of *now_frag.  */
+   If there is no room, close off the current frag with a ".fill 0"
+   and begin a new frag.  Then loop until the new frag has at least
+   nchars chars available.  Does not set up any fields in frag_now.  */
 
 void
 frag_grow (size_t nchars)


More information about the Binutils-cvs mailing list