From 812b05b22c1c41e0f57c65b80feadecc439d8f32 Mon Sep 17 00:00:00 2001 From: Moritz Kroll Date: Tue, 5 Aug 2008 11:17:58 +0000 Subject: [PATCH] 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] --- ir/be/begnuas.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.20.1