re PR middle-end/20606 (ICE in make_edges, at cfgbuild.c:327 on x86_64 (with O2 - not with no optimizations))

2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/20606
        PR middle-end/24069
        * reload.c (subst_reloads): When adding a REG_LABEL to a
        jump instruction, also update JUMP_LABEL.

From-SVN: r105013
This commit is contained in:
Andrew Pinski 2005-10-05 19:50:27 +00:00 committed by Andrew Pinski
parent f935b9e01b
commit d14e25e00b
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/20606
PR middle-end/24069
* reload.c (subst_reloads): When adding a REG_LABEL to a
jump instruction, also update JUMP_LABEL.
2005-10-05 David Edelsohn <edelsohn@gnu.org>
* params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.

View File

@ -6033,9 +6033,12 @@ subst_reloads (rtx insn)
register refers to. */
if (GET_CODE (*r->where) == LABEL_REF
&& JUMP_P (insn))
REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL,
XEXP (*r->where, 0),
REG_NOTES (insn));
{
REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL,
XEXP (*r->where, 0),
REG_NOTES (insn));
JUMP_LABEL (insn) = XEXP (*r->where, 0);
}
/* Encapsulate RELOADREG so its machine mode matches what
used to be there. Note that gen_lowpart_common will