This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MT-safe exception and thread library
- To: Teemu Torma <tot at trema dot com>
- Subject: Re: MT-safe exception and thread library
- From: Ulrich Drepper <drepper at ipd dot info dot uni-karlsruhe dot de>
- Date: 17 Dec 1997 15:07:03 +0100
- Cc: egcs at cygnus dot com, libc-linux at gnu dot org (GNU C Library)
- References: <199712170910.KAA25862@baht.labs.trema.com>
- Reply-To: egcs at cygnus dot com
Teemu Torma <tot@Trema.COM> writes:
> It is not nice to use multilibs, but I am not sure if using weak
> symbols is that straightforward. One problem that may arise is
> that MT code should usually be compiled with some preprocessor
> options (-D_REENTRANT for example), which also changes some other
> things, at least how "errno" is defined.
No, a corect environment must not depend on -D_REENTRANT being
defined. This is absolutely no problem if you use glibc on an ELF
system and therefore HJ's proposal is the only acceptable for these
systems.
-- Uli
---------------. drepper at gnu.org ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com `------------------------