This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Another libio patch
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: Another libio patch
- From: Ulrich Drepper <drepper at ipd dot info dot uni-karlsruhe dot de>
- Date: 11 Oct 1997 02:53:00 +0200
- Cc: egcs at cygnus dot com
- References: <m0xJnF9-0004eeC@ocean.lucon.org>
- Reply-To: drepper at ipd dot info dot uni-karlsruhe dot de (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> Please discard my previous libio patch. This patch should
> fix both glibc 2 and libc 5. Please let me know the result
> on libc 5.3.12 on linux/x86.
This looks much better. Though
> #ifdef weak_alias
> weak_alias (_IO_vsprintf, vsprintf)
> +#else
> +#ifdef __ELF__
> +#pragma weak vsprintf = _IO_vsprintf
> +#endif
> #endif
I don't think we should use the alias for other ELF systems (Solaris etc).
I think this should read
#if defined __linux__ && defined __ELF__
-- Uli
---------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------