From: Christoph Mallon Date: Sun, 6 May 2012 06:02:10 +0000 (+0200) Subject: Unbreak emitting TLS variables in the binary ia32 emitter. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dcea6502999c2ad9ba03a64bfba41ff233a94034;p=libfirm Unbreak emitting TLS variables in the binary ia32 emitter. --- diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index 9449772ba..f85c402d3 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -2093,7 +2093,7 @@ static void bemit_entity(ir_entity *entity, bool entity_sign, int offset, be_gas_emit_entity(entity); if (get_entity_owner(entity) == get_tls_type()) { - if (get_entity_visibility(entity) == ir_visibility_external) { + if (!entity_has_definition(entity)) { be_emit_cstring("@INDNTPOFF"); } else { be_emit_cstring("@NTPOFF");