Commit a5cc92fd by Joern Rennecke Committed by Joern Rennecke

re PR target/46434 (crx-elf --enable-werror-always build fails)

	PR target/46434
	* config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
Index: config/crx/crx.c
===================================================================
--- config/crx/crx.c	(revision 166609)
+++ config/crx/crx.c	(working copy)
@@ -613,6 +613,8 @@ static int crx_addr_reg_p (rtx addr_reg)
       return FALSE;
     }
 
+  gcc_assert (REGNO (reg) != CC_REGNUM);
+
   return TRUE;
 }
 
@@ -1439,17 +1441,12 @@ crx_expand_prologue (void)
 void
 crx_expand_epilogue (void)
 {
-  rtx return_reg;
-
   /* Nonzero if we need to return and pop only RA. This will generate a
    * different insn. This differentiate is for the peepholes for call as last
    * statement in function. */
   int only_popret_RA = (save_regs[RETURN_ADDRESS_REGNUM]
 			&& (sum_regs == UNITS_PER_WORD));
 
-  /* Return register.  */
-  return_reg = gen_rtx_REG (Pmode, RETURN_ADDRESS_REGNUM);
-
   if (frame_pointer_needed)
     /* Restore the stack pointer with the frame pointers value */
     emit_move_insn (stack_pointer_rtx, frame_pointer_rtx);

From-SVN: r166954
parent 0f346928
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
(m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
this_insn_uses_iy before use. this_insn_uses_iy before use.
PR target/46434
* config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2010-11-19 Joseph Myers <joseph@codesourcery.com> 2010-11-19 Joseph Myers <joseph@codesourcery.com>
PR c/46547 PR c/46547
...@@ -1439,17 +1439,12 @@ crx_expand_prologue (void) ...@@ -1439,17 +1439,12 @@ crx_expand_prologue (void)
void void
crx_expand_epilogue (void) crx_expand_epilogue (void)
{ {
rtx return_reg;
/* Nonzero if we need to return and pop only RA. This will generate a /* Nonzero if we need to return and pop only RA. This will generate a
* different insn. This differentiate is for the peepholes for call as last * different insn. This differentiate is for the peepholes for call as last
* statement in function. */ * statement in function. */
int only_popret_RA = (save_regs[RETURN_ADDRESS_REGNUM] int only_popret_RA = (save_regs[RETURN_ADDRESS_REGNUM]
&& (sum_regs == UNITS_PER_WORD)); && (sum_regs == UNITS_PER_WORD));
/* Return register. */
return_reg = gen_rtx_REG (Pmode, RETURN_ADDRESS_REGNUM);
if (frame_pointer_needed) if (frame_pointer_needed)
/* Restore the stack pointer with the frame pointers value */ /* Restore the stack pointer with the frame pointers value */
emit_move_insn (stack_pointer_rtx, frame_pointer_rtx); emit_move_insn (stack_pointer_rtx, frame_pointer_rtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment