https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77706
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-09-23 CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Same as PR77705 but in this case the constructor functions should include the locking/ref-counting dance (so we can optimize that as well). Gets interesting if we optimize multiple adjacent static inits with a single lock (do we?) though then we'd just make a wrapper that just contains the locking.