This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PATCH for thread-safe C++ static local initialization
On Mon, 23 Aug 2004 12:19:17 -0500, Benjamin Kosnik <bkoz@redhat.com> wrote:
>>> Maybe we should *always* do the full code sequence.
>>
>>I think we should do it unless explicitly disabled, a la
>>-fno-rtti/-fno-exceptions.
>
> Presumably, those embedded systems (or other configurations) that don't
> want this default sequence will configure with --disable-threads, which
> will default to gthr-single.h, which doesn't define __GTHREADS, which
> means none of this stuff will get pulled in for them anyway.
>
> So, there is a way to disable this, as-is.
No, that doesn't disable the code bloat around the actual site of the
static variable.
Jason