bfin-protos.h (bfin_expand_movmem): Renamed from bfin_expand_strmov.
authorBernd Schmidt <bernd.schmidt@analog.com>
Wed, 11 Apr 2007 11:06:44 +0000 (11:06 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 11 Apr 2007 11:06:44 +0000 (11:06 +0000)
* config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
bfin_expand_strmov.
* config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
variables.
(initialize_trampoline): Don't use old-style function definition.
(bfin_secondary_reload): Mark IN_P argument as unused.

From-SVN: r123714

gcc/ChangeLog
gcc/config/bfin/bfin-protos.h
gcc/config/bfin/bfin.c

index ef788643cd809e8e4b982d32a03d2c33dc83054c..31b0174c9b97ede7ba75db0ed20c7a42db2976c2 100644 (file)
@@ -1,3 +1,13 @@
+2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
+       bfin_expand_strmov.
+       * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
+       bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
+       variables.
+       (initialize_trampoline): Don't use old-style function definition.
+       (bfin_secondary_reload): Mark IN_P argument as unused.
+
 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
 
        PR tree-optimization/31343
index 31d15b6bfb0aedb4de5a747ace302d0e471d8b32..549d55a72b40d02bc63f830af4fe40e1ad2444d5 100644 (file)
@@ -49,7 +49,7 @@ extern bool expand_move (rtx *, Mmode);
 extern void bfin_expand_call (rtx, rtx, rtx, rtx, int);
 extern bool bfin_longcall_p (rtx, int);
 extern bool bfin_dsp_memref_p (rtx);
-extern bool bfin_expand_strmov (rtx, rtx, rtx, rtx);
+extern bool bfin_expand_movmem (rtx, rtx, rtx, rtx);
 
 extern void conditional_register_usage (void);
 extern int bfin_register_move_cost (enum machine_mode, enum reg_class,
index 43ab3ec85dd7688dff58f92e3d440fd26d13eb4f..dbbeac0a417cdde1dbf9b324d3a6ca7aba60d9cc 100644 (file)
@@ -914,7 +914,6 @@ bfin_load_pic_reg (rtx dest)
 void
 bfin_expand_prologue (void)
 {
-  rtx insn;
   HOST_WIDE_INT frame_size = get_frame_size ();
   rtx spreg = gen_rtx_REG (Pmode, REG_SP);
   e_funkind fkind = funkind (TREE_TYPE (current_function_decl));
@@ -937,7 +936,6 @@ bfin_expand_prologue (void)
 
       if (!lim)
        {
-         rtx p1reg = gen_rtx_REG (Pmode, REG_P1);
          emit_move_insn (p2reg, gen_int_mode (0xFFB00000, SImode));
          emit_move_insn (p2reg, gen_rtx_MEM (Pmode, p2reg));
          lim = p2reg;
@@ -1063,7 +1061,7 @@ legitimize_address (rtx x ATTRIBUTE_UNUSED, rtx oldx ATTRIBUTE_UNUSED,
 static rtx
 bfin_delegitimize_address (rtx orig_x)
 {
-  rtx x = orig_x, y;
+  rtx x = orig_x;
 
   if (GET_CODE (x) != MEM)
     return orig_x;
@@ -1658,7 +1656,6 @@ bfin_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED,
 
   {
     struct cgraph_local_info *this_func, *called_func;
-    rtx addr, insn;
  
     this_func = cgraph_local_info (current_function_decl);
     called_func = cgraph_local_info (decl);
@@ -1671,8 +1668,7 @@ bfin_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED,
    code.  CXT is an RTX for the static chain value for the function.  */
 
 void
-initialize_trampoline (tramp, fnaddr, cxt)
-     rtx tramp, fnaddr, cxt;
+initialize_trampoline (rtx tramp, rtx fnaddr, rtx cxt)
 {
   rtx t1 = copy_to_reg (fnaddr);
   rtx t2 = copy_to_reg (cxt);
@@ -1971,7 +1967,7 @@ bfin_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
    scratch register.  */
 
 static enum reg_class
-bfin_secondary_reload (bool in_p, rtx x, enum reg_class class,
+bfin_secondary_reload (bool in_p ATTRIBUTE_UNUSED, rtx x, enum reg_class class,
                     enum machine_mode mode, secondary_reload_info *sri)
 {
   /* If we have HImode or QImode, we can only use DREGS as secondary registers;
@@ -2293,7 +2289,6 @@ split_load_immediate (rtx operands[])
   int num_zero = shiftr_zero (&shifted);
   int num_compl_zero = shiftr_zero (&shifted_compl);
   unsigned int regno = REGNO (operands[0]);
-  enum reg_class class1 = REGNO_REG_CLASS (regno);
 
   /* This case takes care of single-bit set/clear constants, which we could
      also implement with BITSET/BITCLR.  */