For COFF those .type and .size are not required and don't work like this, anyway...
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 11:17:58 +0000 (11:17 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 11:17:58 +0000 (11:17 +0000)
[r20989]

ir/be/begnuas.c

index fbacf8c..531e868 100644 (file)
@@ -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");