summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-11 11:06:44 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-11 11:06:44 +0000
commit2b8e874ff4dd8b23f4c16a4b6c8684ec910888ca (patch)
tree1592e46cfec1eabbac5b514f20dff2804fa527fe
parent81cbcdb504918d2ef49e106c45e936bedfbbc383 (diff)
downloadgcc-2b8e874ff4dd8b23f4c16a4b6c8684ec910888ca.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123714 138bc75d-0d04-0410-961f-82ee72b054a4
-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 ef788643cd8..31b0174c9b9 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 31d15b6bfb0..549d55a72b4 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 43ab3ec85dd..dbbeac0a417 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. */