This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: gcc4 and local statics
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Wed, 18 May 2005 16:05:05 -0400
- Subject: Re: gcc4 and local statics
- References: <428A7520.7FD9925C@dessent.net> <20050518080133.GA25438@calimero.vinschen.de> <428B8ECB.957836A6@dessent.net>
- Reply-to: cygwin-developers at cygwin dot com
On Wed, May 18, 2005 at 11:51:55AM -0700, Brian Dessent wrote:
>Corinna Vinschen wrote:
>
>> While this might help to avoid... something, I'm seriously wondering
>> what's wrong with this expression. Why does each new version of gcc
>> add new incompatibilities?
>
>I think I've figured this out. PR/13684 added thread safety to
>initialization of local statics.[1] It does this by wrapping the call
>to the contructor around __cxa_guard_acquire and __cxa_guard_release,
>which are supposed to prevent two threads from both calling the
>constructor at the same time.
Please don't cc other mailing lists along with cygwin-developers.
If you cc a subscriber-only mailing list non-subscribers will get a
bounce when they reply. This goes for cygwin-apps/cygwin, too.
cgf