http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50644
--- Comment #6 from Michael Matz <matz at gcc dot gnu.org> 2011-10-13 14:04:36 UTC --- See comment #2, you need to help in debugging it. I can't reproduce, the emutls problem is fixed, and with the information I have I can't speculate which (probably global) variables need the add_referenced_var calls.