[Bug c++/20099] -pthreads should imply -fno-threadsafe-statics

gniccolai at yahoo dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 22 15:59:00 GMT 2005

------- Additional Comments From gniccolai at yahoo dot com  2005-02-22 10:27 -------
> You say a hypothetical multithreaded C++ should state this as the semantics for
> static locals, and I don't disagree with you, provided we are not talking about
> one based on POSIX threads. POSIX specifically made the design decision to
> always require explicit locks and to always require the programmer to find,
> document, and lock cases where concurrent accesses might occur.

I think I wrote a rationale that explains and justifies this choice at 


I had not been able to find an official rationale from open group; the nearest
thing seems to be:


If more precise and authoritative ones are available, please point them out.



More information about the Gcc-bugs mailing list