From cd038d3027364295ee3056eebc9929b55f4514ef Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 22 Jan 2008 10:42:59 +0000 Subject: [PATCH] C99 features removed [r17488] --- ir/be/bespillbelady3.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ir/be/bespillbelady3.c b/ir/be/bespillbelady3.c index 29a196a59..32f9ef20d 100644 --- a/ir/be/bespillbelady3.c +++ b/ir/be/bespillbelady3.c @@ -120,14 +120,14 @@ static worklist_t *duplicate_worklist(const worklist_t *worklist, { ir_node *reload_point = NULL; struct list_head *entry; + worklist_t *new_worklist = obstack_alloc(&obst, sizeof(new_worklist[0])); + + INIT_LIST_HEAD(&new_worklist->live_values); if(succ_block != NULL && get_Block_n_cfgpreds(succ_block) > 1) { reload_point = be_get_end_of_block_insertion_point(block); } - worklist_t *new_worklist = obstack_alloc(&obst, sizeof(new_worklist[0])); - INIT_LIST_HEAD(&new_worklist->live_values); - new_worklist->current_timestep = worklist->current_timestep; new_worklist->n_live_values = worklist->n_live_values; @@ -361,15 +361,15 @@ static void process_block(ir_node *block, void *env) { int n_preds; const ir_edge_t *edge; - (void) env; + worklist_t *worklist = NULL; + double best_execfreq = -1; + ir_node *best_succ_block = NULL; + int best_pos = -1; + (void) env; DB((dbg, LEVEL_1, "Processing %+F\n", block)); /* construct worklist */ - worklist_t *worklist = NULL; - double best_execfreq = -1; - ir_node *best_succ_block = NULL; - int best_pos = -1; foreach_block_succ(block, edge) { ir_node *succ_block = get_edge_src_irn(edge); double execfreq = get_block_execfreq(exec_freq, succ_block); -- 2.20.1