summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/libiberty/obstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/libiberty/obstack.c')
-rw-r--r--contrib/binutils/libiberty/obstack.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/contrib/binutils/libiberty/obstack.c b/contrib/binutils/libiberty/obstack.c
index 2ccf590..a6880ca 100644
--- a/contrib/binutils/libiberty/obstack.c
+++ b/contrib/binutils/libiberty/obstack.c
@@ -39,6 +39,23 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#endif
+/* CYGNUS LOCAL (not to be elided!) */
+
+int
+_obstack_memory_used (h)
+ struct obstack *h;
+{
+ register struct _obstack_chunk* lp;
+ register int nbytes = 0;
+
+ for (lp = h->chunk; lp != 0; lp = lp->prev)
+ {
+ nbytes += lp->limit - (char *) lp;
+ }
+ return nbytes;
+}
+
+/* END CYGNUS LOCAL */
#ifndef ELIDE_CODE
@@ -379,24 +396,6 @@ obstack_free (h, obj)
abort ();
}
-/* CYGNUS LOCAL */
-
-int
-_obstack_memory_used (h)
- struct obstack *h;
-{
- register struct _obstack_chunk* lp;
- register int nbytes = 0;
-
- for (lp = h->chunk; lp != 0; lp = lp->prev)
- {
- nbytes += lp->limit - (char *) lp;
- }
- return nbytes;
-}
-
-/* END CYGNUS LOCAL */
-
#if 0
/* These are now turned off because the applications do not use it
and it uses bcopy via obstack_grow, which causes trouble on sysV. */
OpenPOWER on IntegriCloud