diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 17:43:21 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 17:43:21 +0000 |
commit | b8941d90f9dd1e151822e0f5653e2bfc8b11419d (patch) | |
tree | 38354033a61ff6dd6e9f1015bdff8428a91307f7 /gcc/config/moxie | |
parent | 29e3619cc3341221a873b66eed952fd199bcb173 (diff) | |
download | gcc-b8941d90f9dd1e151822e0f5653e2bfc8b11419d.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r-- | gcc/config/moxie/moxie.c | 4 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c index d2a6b665628..dd8a145e524 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 0cfc11b352b..6f64a7b578c 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)) |