[PATCH 2/5] Move _obstack_compat out of common
Ondřej Bílka
neleai@seznam.cz
Mon May 13 16:10:00 GMT 2013
On Mon, May 13, 2013 at 08:36:09AM -0700, Peter Collingbourne wrote:
> It is impossible to create an alias of a common symbol (as
> compat_symbol does), because common symbols do not have a section or
> an offset until linked. GNU as tolerates aliases of common symbols by
> simply creating another common symbol, but other assemblers (notably
> LLVM's integrated assembler) are less tolerant.
>
> /* A looong time ago (before 1994, anyway; we're not sure) this global variable
> was used by non-GNU-C macros to avoid multiple evaluation. The GNU C
> library still exports it because somebody might use it. */
That I call compatibility :)
> -struct obstack *_obstack_compat;
> +struct obstack *_obstack_compat = 0;
OK for me.
Ondra
More information about the Libc-alpha
mailing list