From ebf1d3db34b58ea5737be766b044864c9ca30760 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 9 May 2007 15:07:01 +0000 Subject: [PATCH] Fixed .comm output for mingw (no elf) [r13737] --- ir/be/begnuas.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 5bb818558..0b8ae0a2c 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -676,7 +676,11 @@ static void dump_global(be_gas_decl_env_t *env, ir_entity *ent, int emit_commons if (variability == variability_uninitialized) { if(emit_as_common) { - obstack_printf(obst, "\t.comm %s,%d,%d\n", + if (be_gas_flavour == GAS_FLAVOUR_NORMAL) + obstack_printf(obst, "\t.comm %s,%d,%d\n", + ld_name, get_type_size_bytes(type), align); + else + obstack_printf(obst, "\t.comm %s,%d # %d\n", ld_name, get_type_size_bytes(type), align); } else { obstack_printf(obst, "\t.zero %d\n", get_type_size_bytes(type)); -- 2.20.1