------- Comment #3 from iains at gcc dot gnu dot org 2010-05-25 20:38 ------- I will need some help in tracking down how to solve this (since I don't have an emutls/visibility/alias target available).
Also I can't find any reference in the gcc manual to alias applied to variables - only to functions. (although that might just be documentation lag). I guess we need to check for the alias attribute in emutls_decl and find our way back to the original aliased decl. Alternatively it might be enough to copy the alias attribute onto the emutls control var. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44276