From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28841 invoked by alias); 30 Oct 2002 16:08:03 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 28708 invoked from network); 30 Oct 2002 16:08:01 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 30 Oct 2002 16:08:01 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g9UG7uR21126; Wed, 30 Oct 2002 17:07:56 +0100 Date: Wed, 30 Oct 2002 08:45:00 -0000 From: Jakub Jelinek To: Roland McGrath , Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Avoid .text duplication in obstack.c Message-ID: <20021030170756.Y3451@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-10/txt/msg00111.txt.bz2 Hi! It is not much, but anyway. 2002-10-30 Jakub Jelinek * 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