]> gcc.gnu.org Git - gcc.git/commitdiff
Fix set but unused variables.
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Sat, 17 Apr 2010 08:06:05 +0000 (08:06 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Sat, 17 Apr 2010 08:06:05 +0000 (08:06 +0000)
2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * 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

gcc/ChangeLog
gcc/config/arm/arm.c

index c6027a658073fd572dc364fcc09dc751623f96af..23d0725c32d75dd157813916586aae3f6c3359df 100644 (file)
@@ -1,3 +1,10 @@
+2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * 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  <law@redhat.com>
 
        * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
index 1a555b8706b10a7f2eb30fb031f9c1a565b56334..2bb28750fab4f0ff39095494a73d48288d74ab7b 100644 (file)
@@ -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:
This page took 0.09578 seconds and 5 git commands to generate.