summaryrefslogtreecommitdiff
path: root/gas/frags.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2004-01-23 12:52:20 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2004-01-23 12:52:20 +0000
commitb36f8369a88b36c6974db6d1fc0c5a03fb0dfe0f (patch)
tree8594e28ebd144e6ae51eeea73ff74c2af6ffb1e7 /gas/frags.c
parent56390e271e3b672981529f2fe10d681076a41d1a (diff)
downloadbinutils-redhat-b36f8369a88b36c6974db6d1fc0c5a03fb0dfe0f.tar.gz
* frags.h (frag_room): Declare.
* frags.c (frag_room): New function. * doc/internals.texi: Document it.
Diffstat (limited to 'gas/frags.c')
-rw-r--r--gas/frags.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/frags.c b/gas/frags.c
index 1521d4bf01..83625d7fbf 100644
--- a/gas/frags.c
+++ b/gas/frags.c
@@ -262,6 +262,14 @@ frag_wane (register fragS *fragP)
fragP->fr_var = 0;
}
+/* Return the number of bytes by which the current frag can be grown. */
+
+int
+frag_room (void)
+{
+ return obstack_room (&frchain_now->frch_obstack);
+}
+
/* Make an alignment frag. The size of this frag will be adjusted to
force the next frag to have the appropriate alignment. ALIGNMENT
is the power of two to which to align. FILL_CHARACTER is the