Commit 5f4e9238 authored by Matthias Braun's avatar Matthias Braun
Browse files

don't emit .space with 0 bytes

parent ad3f28f3
......@@ -1602,8 +1602,11 @@ static void emit_global(be_gas_decl_env_t *env, const ir_entity *entity)
}
if (entity_is_null(entity)) {
be_emit_irprintf("\t.space %u, 0\n", get_type_size_bytes(type));
be_emit_write_line();
unsigned size = get_type_size_bytes(type);
if (size > 0) {
be_emit_irprintf("\t.space %u, 0\n", get_type_size_bytes(type));
be_emit_write_line();
}
} else if (entity_has_compound_ent_values(entity)) {
emit_compound_graph_init(env, entity);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment