This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: question about __cxa_guard_acquire and static variables in the scope of a function
Brendan Miller <catphive@catphive.net> writes:
> Do you know if G++ 3.4 did thread-safe static local initialization in
> this manner? This bug appeared after a migration from 3.4 to 4.1. I'm
> wondering if statics in the scope of the function were previously
> getting double-created and double destroyed, and we just didn't notice
> somehow.
According to http://gcc.gnu.org/PR13684 support for thread-safe
initialization of function statics was indeed introduced in gcc 4.0.
Ian