https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61436
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > it seems that get_emutls_init_templ_addr just create the comdat too early > and we trigger sanity check that symbols are static and not automatic > variables. > > I have busy day tomorrow, so won't beat if anyone beats me in testing if > this fix works. ... The fix works for me (x86_64-apple-darwin13).