aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-05-28 14:30:34 +0100
committerNick Clifton <nickc@redhat.com>2020-05-28 14:30:34 +0100
commit9e85f042a6eda1cd96cc95e66f80db95f28d4557 (patch)
treeb268eb6086176c6fd3d705663e67adec0765a01e
parentcee00f171520eb85867230d4cbed34480c64e71e (diff)
downloadgdb-9e85f042a6eda1cd96cc95e66f80db95f28d4557.zip
gdb-9e85f042a6eda1cd96cc95e66f80db95f28d4557.tar.gz
gdb-9e85f042a6eda1cd96cc95e66f80db95f28d4557.tar.bz2
[PATCH] gas: Fix comment on definition of frag_grow()
* frags.c (frag_grow): Fix comment.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/frags.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c0b3dc8..2f719e7 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 12cbe6c..c926ec3 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)