This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
MT-safe exception and thread library
- To: egcs at cygnus dot com
- Subject: MT-safe exception and thread library
- From: Teemu Torma <tot at trema dot com>
- Date: Wed, 17 Dec 1997 10:10:42 +0100
- cc: libc-linux at gnu dot org (GNU C Library)
- Organization: Trema Laboratories SARL
- Reply-To: egcs at cygnus dot com
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.
Teemu