From: Michael Beck Date: Sat, 24 Apr 2010 21:45:19 +0000 (+0000) Subject: C99 feature removed. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2e0edbcbe5c9ffbc2527c4e4e17b62dac824fec9;p=libfirm C99 feature removed. [r27436] --- diff --git a/ir/be/sparc/bearch_sparc.c b/ir/be/sparc/bearch_sparc.c index 5ed77df6e..e78adc283 100644 --- a/ir/be/sparc/bearch_sparc.c +++ b/ir/be/sparc/bearch_sparc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -467,14 +467,14 @@ static const arch_register_t *sparc_abi_prologue(void *self, ir_node **mem, //ir_type *frame_type = get_irg_frame_type(env->irg); //frame_alloc_area(frame_type, reserved_stack_size, 1, 1); - (void) reg_map; - (void) mem; - (void) stack_bias; - // alloc min required stack space // TODO: the min stacksize depends on wether this is a leaf procedure or not ir_node *save = new_bd_sparc_Save(NULL, block, sp_proj, *mem, SPARC_MIN_STACKSIZE); + (void) reg_map; + (void) mem; + (void) stack_bias; + *stack_bias -= SPARC_MIN_STACKSIZE; sp_proj = new_r_Proj(save, sp->reg_class->mode, pn_sparc_Save_stack); *mem = new_r_Proj(save, mode_M, pn_sparc_Save_mem); diff --git a/ir/opt/loop.c b/ir/opt/loop.c index ae0a89ea8..c04027530 100644 --- a/ir/opt/loop.c +++ b/ir/opt/loop.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -2063,11 +2063,9 @@ static unsigned get_unroll_decision(void) /* Initialize unrolling phase. TODO alloc array here? */ void *init_unrolling_phase(ir_phase *ph, const ir_node *n, void *old) { - (void)old; - ir_node **arr; - unrolling_node_info *info = XMALLOCZ(unrolling_node_info); - arr = NEW_ARR_F(ir_node *, unroll_number - 1); + ir_node **arr = NEW_ARR_F(ir_node *, unroll_number - 1); + (void)old; memset(info->copies, 0, (unroll_number - 1) * sizeof(ir_node *)); info->copies = arr;