CFT: Re: libgcc: why emutls.c in LIB2ADDEH instead of LIB2ADD?
Iain Sandoe
developer@sandoe-acoustics.co.uk
Mon Nov 21 11:30:00 GMT 2011
On 21 Nov 2011, at 09:34, Hans-Peter Nilsson wrote:
>> From: Paolo Bonzini <bonzini@gnu.org>
>> Sender: Paolo Bonzini <paolo.bonzini@gmail.com>
>> Date: Mon, 21 Nov 2011 10:20:39 +0100
>
>> H-P, can you try bootstrapping your patch on cygwin and/or mingw too
>> before applying it?
>
> Sorry, I don't have that. Dave?
The reason it was in libgcc_eh (AFAIK, the original implementation pre-
dates my GCC days) - is because there can only be one copy of the
static emutls locking entities in a given exe. I guess it was felt
analogous to the "only one unwinder" rule.
note also: Darwin links libgcc.a even when using dynamic libs - it
provides eprintf (and the out-of-line GPR/FPR save routines for
powerpc).
(this is not a total show-stopper, we could provide those things some
other way)
Iain
More information about the Gcc-patches
mailing list