summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-05 19:50:27 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-05 19:50:27 +0000
commitd25bc94347be30972c8739d19c64cb2946c04d32 (patch)
treeb3e22449dd0f8866c2cae00fb256894231507cc6 /gcc/reload.c
parent6b6a21696710ecae0556a8ede7f235ac8dca56a9 (diff)
downloadgcc-d25bc94347be30972c8739d19c64cb2946c04d32.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105013 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index c8e8c07aebe..e55bf34c436 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -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