[Bug c++/66172] -fno-threadsafe-statics suppresses guard functions but not guard variables

eleventen at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat May 16 06:06:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66172

--- Comment #3 from Marc Singer <eleventen at gmail dot com> ---
I've come to the same conclusion.  My hope was that I could eliminate the guard
and force the compiler to initialize block scoped statics at the start of
execution.  It looks like the standard stands in the way of this
simplification.



More information about the Gcc-bugs mailing list