From: Moritz Kroll Date: Tue, 5 Aug 2008 11:17:58 +0000 (+0000) Subject: For COFF those .type and .size are not required and don't work like this, anyway... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=812b05b22c1c41e0f57c65b80feadecc439d8f32;p=libfirm For COFF those .type and .size are not required and don't work like this, anyway (gcc doesn't produce them at all for COFF) [r20989] --- diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index fbacf8c62..531e86849 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -1183,7 +1183,8 @@ static void dump_global(be_gas_decl_env_t *env, ir_entity *ent) emit_align(align); } - if (visibility != visibility_external_allocated && !emit_as_common) { + if (visibility != visibility_external_allocated && !emit_as_common + && be_gas_flavour == GAS_FLAVOUR_ELF) { be_emit_cstring("\t.type\t"); be_emit_ident(ld_ident); be_emit_cstring(", @object\n\t.size\t");