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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105013
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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