This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MT-safe exception and thread library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]