X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbegnuas.c;h=5a90acf5142e70253004eec71fa6fa9dcd8ecd54;hb=bf1c97a05ee28668fc71d30100ec3ec5799299a9;hp=9d927d7ebe62505167cc245873679638c982703d;hpb=dd6793ed8b75dd86637857ce795f07607a6d77ec;p=libfirm diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 9d927d7eb..5a90acf51 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -730,7 +730,7 @@ static void emit_init_expression(be_gas_decl_env_t *env, ir_node *init) return; default: - panic("emit_atomic_init(): unsupported IR-node %+F", init); + panic("unsupported IR-node %+F", init); } } @@ -1332,7 +1332,7 @@ void be_gas_emit_block_name(const ir_node *block) if (entity != NULL) { be_gas_emit_entity(entity); } else { - void *nr_val = pmap_get(block_numbers, block); + void *nr_val = pmap_get(void, block_numbers, block); int nr; if (nr_val == NULL) { nr = next_block_nr++; @@ -1358,14 +1358,10 @@ void be_gas_begin_block(const ir_node *block, bool needs_label) } if (be_options.verbose_asm) { - int arity; - ir_graph *irg = get_irn_irg(block); - ir_exec_freq *exec_freq = be_get_irg_exec_freq(irg); - be_emit_pad_comment(); - be_emit_cstring("/* preds:"); + be_emit_irprintf("/* %+F preds:", block); - arity = get_irn_arity(block); + int arity = get_irn_arity(block); if (arity == 0) { be_emit_cstring(" none"); } else { @@ -1376,11 +1372,7 @@ void be_gas_begin_block(const ir_node *block, bool needs_label) be_gas_emit_block_name(predblock); } } - if (exec_freq != NULL) { - be_emit_irprintf(", freq: %.3f", - get_block_execfreq(exec_freq, block)); - } - be_emit_cstring(" */"); + be_emit_irprintf(", freq: %.3f */", get_block_execfreq(block)); } be_emit_char('\n'); be_emit_write_line(); @@ -1530,14 +1522,13 @@ static void emit_global_decls(const be_main_env_t *main_env) void be_emit_jump_table(const ir_node *node, const ir_switch_table *table, ir_entity *entity, get_cfop_target_func get_cfop_target) { - unsigned n_outs = arch_get_irn_n_outs(node); - const ir_node **targets = XMALLOCNZ(const ir_node*, n_outs); - size_t n_entries = ir_switch_table_get_n_entries(table); - unsigned long length = 0; - size_t e; - const ir_edge_t *edge; - unsigned i; - const ir_node **labels; + unsigned n_outs = arch_get_irn_n_outs(node); + const ir_node **targets = XMALLOCNZ(const ir_node*, n_outs); + size_t n_entries = ir_switch_table_get_n_entries(table); + unsigned long length = 0; + size_t e; + unsigned i; + const ir_node **labels; /* go over all proj's and collect their jump targets */ foreach_out_edge(node, edge) {