This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Fix moxie --enable-werror-always build
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Anthony Green <green at moxielogic dot com>
- Date: Thu, 11 Nov 2010 15:11:36 -0500
- Subject: RFA: Fix moxie --enable-werror-always build
built on i686-pc-linux-gnu with gcc (GCC) 4.6.0 20101111 (experimental) .
2010-11-11 Joern Rennecke <amylaar@spamcop.net>
PR target/46428
* config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
* config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Cast num to
HOST_WIDE_INT before comparing against zero.
Index: config/moxie/moxie.c
===================================================================
--- config/moxie/moxie.c (revision 166609)
+++ config/moxie/moxie.c (working copy)
@@ -317,7 +317,7 @@ moxie_expand_prologue (void)
moxie_expand_epilogue (void)
{
int regno;
- rtx insn, reg, cfa_restores = NULL;
+ rtx reg;
if (cfun->machine->callee_saved_reg_size != 0)
{
@@ -340,7 +340,7 @@ moxie_expand_epilogue (void)
&& df_regs_ever_live_p (regno))
{
rtx preg = gen_rtx_REG (Pmode, regno);
- insn = emit_insn (gen_movsi_pop (reg, preg));
+ emit_insn (gen_movsi_pop (reg, preg));
}
}
Index: config/moxie/moxie.h
===================================================================
--- config/moxie/moxie.h (revision 166609)
+++ config/moxie/moxie.h (working copy)
@@ -405,7 +405,7 @@ #define INITIAL_ELIMINATION_OFFSET(FROM,
#define INDEX_REG_CLASS NO_REGS
#define HARD_REGNO_OK_FOR_BASE_P(NUM) \
- ((NUM) >= 0 && (NUM) < FIRST_PSEUDO_REGISTER \
+ ((HOST_WIDE_INT) (NUM) >= 0 && (NUM) < FIRST_PSEUDO_REGISTER \
&& (REGNO_REG_CLASS(NUM) == GENERAL_REGS \
|| (NUM) == HARD_FRAME_POINTER_REGNUM))