------- Comment #24 from jakub at gcc dot gnu dot org 2009-09-16 10:37 ------- As the __emul* decls are using TLS_MODEL_EMULATED, this patch might make even their SYMBOL_REFs start using that TLS model. But, unlike the user vars, these occur normally in the instruction stream, so I wonder if this patch won't break things. Perhaps we shouldn't set SYMBOL_REF_TLS_MODEL if DECL_TLS_MODEL is TLS_MODEL_EMULATED, otherwise it risks that e.g. backends reject it as invalid constant.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41357