------- Comment #4 from mikpe at it dot uu dot se 2010-06-12 21:26 ------- (In reply to comment #3) > Fixing by reverting Steven patch is not enough to regain bootstrap on arm, > here > is the error during stage2:
This is a new unrelated error caused by r160458. You should IMO have opened a new PR for it. Anyway, the patch below should fix it. Tested in a cross so far, I'll do a native bootstrap of 4.6 head + this tomorrow. The declaration bug for 'vec' is obvious. The fact that 'op1' is extracted but unused makes me a bit nervous. --- gcc-4.6-r160458/gcc/config/arm/arm.c.~1~ +++ gcc-4.6-r160458/gcc/config/arm/arm.c @@ -11457,13 +11457,12 @@ thumb2_reorg (void) rtx dst = XEXP (pat, 0); rtx src = XEXP (pat, 1); rtx op0 = XEXP (src, 0); - rtx op1 = XEXP (src, 1); if (rtx_equal_p (dst, op0) || GET_CODE (src) == PLUS || GET_CODE (src) == MINUS) { rtx ccreg = gen_rtx_REG (CCmode, CC_REGNUM); rtx clobber = gen_rtx_CLOBBER (VOIDmode, ccreg); - rtx vec = gen_rtvec (2, pat, clobber); + rtvec vec = gen_rtvec (2, pat, clobber); PATTERN (insn) = gen_rtx_PARALLEL (VOIDmode, vec); INSN_CODE (insn) = -1; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44458