From: Ramana Radhakrishnan Date: Sat, 17 Apr 2010 08:06:05 +0000 (+0000) Subject: Fix set but unused variables. X-Git-Tag: releases/gcc-4.6.0~7814 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80d56d040e2050cf478e7e0703d5fe9af30eaac1;p=thirdparty%2Fgcc.git Fix set but unused variables. 2010-04-17 Ramana Radhakrishnan * config/arm/arm.c (arm_gen_constant): Remove unused variable 'can_shift'. (arm_rtx_costs_1): Remove unused variable 'extra_cost'. (arm_unwind_emit_set): Use variable 'offset'. (thumb1_output_casesi): Remove unused variable 'flags'. From-SVN: r158460 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6027a658073..23d0725c32d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-04-17 Ramana Radhakrishnan + + * config/arm/arm.c (arm_gen_constant): Remove unused variable can_shift. + (arm_rtx_costs_1): Remove unused variable extra_cost. + (arm_unwind_emit_set): Use variable offset. + (thumb1_output_casesi): Remove unused variable flags. + 2010-04-16 Jeff Law * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 1a555b8706b1..2bb28750fab4 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2522,7 +2522,6 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond, int can_negate = 0; int final_invert = 0; int can_negate_initial = 0; - int can_shift = 0; int i; int num_bits_set = 0; int set_sign_bit_copies = 0; @@ -2541,7 +2540,6 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond, { case SET: can_invert = 1; - can_shift = 1; can_negate = 1; break; @@ -6340,7 +6338,6 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed) enum rtx_code subcode; rtx operand; enum rtx_code code = GET_CODE (x); - int extra_cost; *total = 0; switch (code) @@ -6564,7 +6561,6 @@ arm_rtx_costs_1 (rtx x, enum rtx_code outer, int* total, bool speed) /* Fall through */ case AND: case XOR: case IOR: - extra_cost = 0; /* Normally the frame registers will be spilt into reg+const during reload, so it is a bad idea to combine them with other instructions, @@ -21121,7 +21117,7 @@ arm_unwind_emit_set (FILE * asm_out_file, rtx p) offset = INTVAL (XEXP (e1, 1)); asm_fprintf (asm_out_file, "\t.setfp %r, %r, #%wd\n", HARD_FRAME_POINTER_REGNUM, reg, - INTVAL (XEXP (e1, 1))); + offset); } else if (GET_CODE (e1) == REG) { @@ -21411,12 +21407,9 @@ const char * thumb1_output_casesi (rtx *operands) { rtx diff_vec = PATTERN (next_real_insn (operands[0])); - addr_diff_vec_flags flags; gcc_assert (GET_CODE (diff_vec) == ADDR_DIFF_VEC); - flags = ADDR_DIFF_VEC_FLAGS (diff_vec); - switch (GET_MODE(diff_vec)) { case QImode: