[Bug rtl-optimization/53785] coalescing multiple static instances in function scope

2012-06-27 Thread vincenzo.innocente at cern dot ch
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

[Bug rtl-optimization/53785] coalescing multiple static instances in function scope

2012-06-26 Thread pinskia at gcc dot gnu.org
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