aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2010-11-12 17:43:21 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-11-12 17:43:21 +0000
commita8ea94841c56104dd32eb9cbaa90a9cc12dbc57e (patch)
tree38354033a61ff6dd6e9f1015bdff8428a91307f7 /gcc
parent02809efdd68866e279b73e06dc2bd870ba2fcb06 (diff)
downloadgcc-a8ea94841c56104dd32eb9cbaa90a9cc12dbc57e.zip
gcc-a8ea94841c56104dd32eb9cbaa90a9cc12dbc57e.tar.gz
gcc-a8ea94841c56104dd32eb9cbaa90a9cc12dbc57e.tar.bz2
re PR target/46428 (moxie-elf --enable-werror-always build fails)
PR target/46428 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables. * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned comparison. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r166664
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/moxie/moxie.c4
-rw-r--r--gcc/config/moxie/moxie.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6df880a..bcab08d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2010-11-12 Joern Rennecke <amylaar@spamcop.net>
+ Richard Henderson <rth@redhat.com>
+
+ PR target/46428
+ * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
+ * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
+ comparison.
+
2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
* opts-common.c (decode_cmdline_option): Initialize separate_args.
diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c
index d2a6b66..dd8a145 100644
--- a/gcc/config/moxie/moxie.c
+++ b/gcc/config/moxie/moxie.c
@@ -317,7 +317,7 @@ 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));
}
}
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index 0cfc11b..6f64a7b 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -405,7 +405,7 @@ enum reg_class
#define INDEX_REG_CLASS NO_REGS
#define HARD_REGNO_OK_FOR_BASE_P(NUM) \
- ((NUM) >= 0 && (NUM) < FIRST_PSEUDO_REGISTER \
+ ((unsigned) (NUM) < FIRST_PSEUDO_REGISTER \
&& (REGNO_REG_CLASS(NUM) == GENERAL_REGS \
|| (NUM) == HARD_FRAME_POINTER_REGNUM))