aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2007-04-11 11:06:44 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2007-04-11 11:06:44 +0000
commit266d11d862b0cba843cf3cfcac6dfeab46728bfc (patch)
tree1592e46cfec1eabbac5b514f20dff2804fa527fe
parentc74620b05b1dfc5d5d683899b84ccf7c86d78d78 (diff)
downloadgcc-266d11d862b0cba843cf3cfcac6dfeab46728bfc.zip
gcc-266d11d862b0cba843cf3cfcac6dfeab46728bfc.tar.gz
gcc-266d11d862b0cba843cf3cfcac6dfeab46728bfc.tar.bz2
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
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/bfin/bfin-protos.h2
-rw-r--r--gcc/config/bfin/bfin.c11
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 <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
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. */