http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48076
--- Comment #7 from torvald at gcc dot gnu.org 2012-11-28 14:29:47 UTC --- (In reply to comment #6) > There seems to be a similar bug in code generated for function static > variables. > The fast-path load is a plain load rather than atomic acquire load. Haven't looked at the details, but this indeed looks similar.