http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53785
--- Comment #2 from vincenzo Innocente
2012-06-28 04:43:27 UTC ---
I think that no one can rely on the way statics are initialized to tune side
effects.
The only things to guarantee are that is guarded and, I think, that the order
is preserved (b
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53785
--- Comment #1 from Andrew Pinski 2012-06-27
06:59:08 UTC ---
The question comes, do we want to have a lock for each variable or one for the
scope? One for each variable was easier to implement and might be more
correct. What happens if getId h