gcc4 and local statics

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed May 18 20:05:00 GMT 2005

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.


More information about the Cygwin-developers mailing list