Commit c64c5e51 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix a bunch of bugs in my last commit (no idea why I didn't see them on my mac)

[r26082]
parent bd0527dc
......@@ -1139,6 +1139,9 @@ static void dump_global(be_gas_decl_env_t *env, ir_entity *ent)
if (is_Method_type(type) && section != GAS_SECTION_PIC_TRAMPOLINES) {
return;
}
if (type == firm_code_type) {
return;
}
if (section != (be_gas_section_t) -1) {
emit_as_common = 0;
......
......@@ -822,6 +822,7 @@ ir_entity *create_Block_entity(ir_node *block) {
nr = get_irp_next_label_nr();
set_entity_label(entity, nr);
set_entity_compiler_generated(entity, 1);
set_entity_allocation(entity, allocation_static);
block->attr.block.entity = entity;
}
......
......@@ -98,7 +98,6 @@ void firm_init_type(dbg_info *builtin_db, unsigned def_cc_mask) {
remove_irp_type(firm_none_type);
firm_code_type = new_type(tpop_code, mode_ANY, new_id_from_str("type_code"), builtin_db);
set_type_size_bytes(firm_code_type, 0);
set_type_state(firm_code_type, layout_fixed);
remove_irp_type(firm_code_type);
......
......@@ -144,7 +144,6 @@ static void do_type_walk(type_or_ent tore,
case k_type:
mark_type_visited(tp);
switch (get_type_tpop_code(tp)) {
case tpo_class:
n_types = get_class_n_supertypes(tp);
for (i = 0; i < n_types; ++i) {
......@@ -208,13 +207,15 @@ static void do_type_walk(type_or_ent tore,
do_type_walk(cont, pre, post, env);
break;
case tpo_code:
case tpo_primitive:
case tpo_id:
case tpo_none:
case tpo_unknown:
/* a leave. */
break;
default:
case tpo_uninitialized:
case tpo_max:
assert(0 && "Faulty type");
break;
}
......
Markdown is supported
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