http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50598
--- Comment #14 from Jan Hubicka <hubicka at ucw dot cz> 2011-11-13 12:41:03 UTC --- Hi, I finally debugged this. It is an ordering issue - emutls adds new variables but remove_unreachable_functions expects that visibility pass has been run and externally_visible flag computed. I will add add_new_variable for backend use just like cgraph API have. Honza