public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Avoid .text duplication in obstack.c
@ 2002-10-30  8:45 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2002-10-30  8:45 UTC (permalink / raw)
  To: Roland McGrath, Ulrich Drepper; +Cc: Glibc hackers

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
 \f
 int
 _obstack_memory_used (h)

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-30 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30  8:45 [PATCH] Avoid .text duplication in obstack.c Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).