MT-safe exception and thread library

Ulrich Drepper drepper@ipd.info.uni-karlsruhe.de
Wed Dec 17 06:10:00 GMT 1997


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   `------------------------



More information about the Gcc mailing list