This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: obstack.c defines a variable that isn't used
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Paul Eggert <eggert at CS dot UCLA dot EDU>, libc-alpha at sources dot redhat dot com
- Date: Thu, 20 May 2004 20:20:35 -0700
- Subject: Re: obstack.c defines a variable that isn't used
- Organization: Red Hat, Inc.
- References: <200405210031.i4L0VeJN004211@magilla.sf.frob.com>
Roland McGrath wrote:
> If we can ascertain an earliest possible version in which the obstack.h
> macros no longer used _obstack, then we should conditionalize the defn
> using SHLIB_COMPAT.
No, we cannot do this. We can and should mark the symbol as a
non-default symbol so that future programs cannot link with it. But the
use of the symbol in <obstack.h> (or lack of) is not sufficient for
adding SHLIB_COMPAT since if, for some odd reason, somebody has named a
symbol _obstack in her/his own code the definition could be used. I
know, it's highly unlikely but still, the possibility exists and it
really isn't expensive to keep the definition.
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â