[PATCH] Avoid .text duplication in obstack.c
Jakub Jelinek
jakub@redhat.com
Wed Oct 30 08:45:00 GMT 2002
Hi!
It is not much, but anyway.
2002-10-30 Jakub Jelinek <jakub@redhat.com>
* malloc/obstack.c (obstack_free): Change into strong_alias instead
of duplicating the whole function in libc.
--- libc/malloc/obstack.c.jj 2002-08-05 08:44:17.000000000 +0200
+++ libc/malloc/obstack.c 2002-10-30 17:15:24.000000000 +0100
@@ -418,6 +418,10 @@ _obstack_free (h, obj)
/* This function is used from ANSI code. */
+#ifdef _LIBC
+strong_alias (_obstack_free, obstack_free)
+#else
+
void
obstack_free (h, obj)
struct obstack *h;
@@ -449,6 +453,7 @@ obstack_free (h, obj)
/* obj is not in any of the chunks! */
abort ();
}
+#endif
int
_obstack_memory_used (h)
Jakub
More information about the Libc-hacker
mailing list