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: egcs at cygnus dot com
- Subject: Re: MT-safe exception and thread library
- From: Andrey Slepuhin <pooh at msu dot ru>
- Date: Wed, 17 Dec 1997 15:30:21 +0300
- Organization: Moscow State University, Network Management Department
- References: <199712170910.KAA25862@baht.labs.trema.com>
- Reply-To: egcs at cygnus dot com
Teemu Torma wrote:
>
> From: hjl@lucon.org (H.J. Lu)
> Date: Tue, 16 Dec 1997 11:29:29 -0800 (PST)
>
> I am not sure if I like the multilibs for the Thread-safe EH support.
> That may be a problem for glibc. I'd like to see an option for a
> single libgcc.a with the the Thread-safe EH support using weak
> symols. I think it should work with gcc on platforms with weak
> support. We can use SUPPORTS_WEAK to detect it. It should be
> very easy to do.
>
> 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. It may or may not cause
> problems in libgcc.
I agree that using weak symbols also may cause problems, but
anyway on my AIX box (which don't support weak symbols) I have
12 (!!!) different libraries with multilib enabled, so I must
to hack configuration files manually to disable cpu-specific
libraries, so it would be better to separate thread-specific
configuration options.
Andrey.