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
This commit is contained in:
Bernd Schmidt 2007-04-11 11:06:44 +00:00 committed by Bernd Schmidt
parent c74620b05b
commit 266d11d862
3 changed files with 14 additions and 9 deletions

View 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

View 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,

View 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. */