../../../gcc/gcc/config/crx/crx.c: In function ‘crx_addr_reg_p’: ../../../gcc/gcc/config/crx/crx.c:595:7: error: variable ‘reg’ set but not used [-Werror=unused-but-set-variable] ../../../gcc/gcc/config/crx/crx.c: In function ‘crx_expand_epilogue’: ../../../gcc/gcc/config/crx/crx.c:1442:7: error: variable ‘return_reg’ set but n
A patch has been posted here: http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01303.html
Author: amylaar Date: Fri Nov 19 19:22:27 2010 New Revision: 166954 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166954 Log: 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); Modified: trunk/gcc/ChangeLog trunk/gcc/config/crx/crx.c
Author: rth Date: Mon Nov 22 21:20:52 2010 New Revision: 167053 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167053 Log: PR target/46434 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p; return the address register extracted. (crx_decompose_address): Update the extracted address register. Modified: trunk/gcc/ChangeLog trunk/gcc/config/crx/crx.c
Patches have been applied to trunk.