gcc private static object constructor thread-safety (revisited)

Joe Buehler jbuehler@hekimian.com
Fri Feb 14 18:34:00 GMT 2003


GCC generates code for construction of function-private C++
objects that is not thread-safe.  I pointed this out a while
back and there was some discussion -- see the thread that starts here:

http://gcc.gnu.org/ml/gcc/2002-08/msg00236.html

But apparently no fix was implemented, because the current
cygwin version of gcc still has the same problem.

I have run into thread-safety issues in the Cygwin dll because
of this, and would really appreciate it if gcc would implement
a fix.

Would one of the gcc developers be willing to fix this?  From
past discussion it didn't sound that hard to do.
-- 
Joe Buehler




More information about the Gcc mailing list