summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorAndreas Seltenreich <seltenreich@gmx.de>2016-02-15 04:27:23 +0100
committerAndreas Seltenreich <seltenreich@gmx.de>2016-02-15 21:41:03 +0100
commit2a1d4038562239ce99c331fb16aa314a25e6265e (patch)
tree61e35fc34e534491c70e1a378d40c218fd28af3e /ir/be/begnuas.c
parent755fac4380f62d9ad7487fe6f9474ddc43b1b7ba (diff)
Enforce IR_LINKAGE_NO_CODEGEN for initializers too.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index bd56a50..7f6ff8d 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -1543,6 +1543,10 @@ static void be_gas_emit_globals(ir_type *const gt, be_main_env_t const *const ma
{
for (size_t i = 0, n = get_compound_n_members(gt); i < n; i++) {
ir_entity *ent = get_compound_member(gt, i);
+
+ if (get_entity_linkage(ent) & IR_LINKAGE_NO_CODEGEN)
+ continue;
+
emit_global(main_env, ent);
}
}