From 266d11d862b0cba843cf3cfcac6dfeab46728bfc Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 11 Apr 2007 11:06:44 +0000 Subject: [PATCH] bfin-protos.h (bfin_expand_movmem): Renamed from bfin_expand_strmov. * 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 | 10 ++++++++++ gcc/config/bfin/bfin-protos.h | 2 +- gcc/config/bfin/bfin.c | 11 +++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef78864..31b0174 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2007-04-11 Bernd Schmidt + + * 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 PR tree-optimization/31343 diff --git a/gcc/config/bfin/bfin-protos.h b/gcc/config/bfin/bfin-protos.h index 31d15b6..549d55a 100644 --- a/gcc/config/bfin/bfin-protos.h +++ b/gcc/config/bfin/bfin-protos.h @@ -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, diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 43ab3ec..dbbeac0 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -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. */ -- 2.7.4