From 0d17f3273fdb154dd3047a1c17ad4f4d9d776689 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 3 Feb 2010 20:30:12 +0000 Subject: [PATCH] further corrections on 'COMMON' semantic [r27034] --- ir/be/begnuas.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index f9a3bb0d0..483afe297 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -1219,6 +1219,9 @@ static void dump_global(be_gas_decl_env_t *env, const ir_entity *ent) if (section == GAS_SECTION_BSS && (get_entity_linkage(ent) & IR_LINKAGE_MERGE)) { + if (get_entity_linkage(ent) & (IR_LINKAGE_LOCAL|IR_LINKAGE_EXTERN)) { + panic("merge link semantic not supported for local/extern entities"); + } emit_common(ent); return; } -- 2.20.1