From 4c33cb26d4c5da87d48e6db6ba6832aaabf358fb Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Mon, 25 Apr 2005 12:46:12 +0000 Subject: re PR rtl-optimization/20413 (VOIDmode LABEL_REFs are generated) 2005-04-25 J"orn Rennecke Stephen Clarke Roger Sayle PR rtl-optimization/20413 * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of VOIDmode for LABEL_REF. * final.c (shorten_branches): Likewise. * jump.c (mark_all_labels, redirect_exp_1): Likewise. * loop.c (reg_dead_after_loop): Likewise. * varasm.c (decode_addr_const): Likewise. * doc/rtl.texi: Document mode requirement for LABEL_REF. Co-Authored-By: Roger Sayle Co-Authored-By: Stephen Clarke From-SVN: r98711 --- gcc/jump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/jump.c') diff --git a/gcc/jump.c b/gcc/jump.c index 74a6c69..8cfe3b9 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -209,7 +209,7 @@ mark_all_labels (rtx f) { /* But a LABEL_REF around the REG_LABEL note, so that we can canonicalize it. */ - rtx label_ref = gen_rtx_LABEL_REF (VOIDmode, + rtx label_ref = gen_rtx_LABEL_REF (Pmode, XEXP (label_note, 0)); mark_jump_label (label_ref, insn, 0); @@ -1543,7 +1543,7 @@ redirect_exp_1 (rtx *loc, rtx olabel, rtx nlabel, rtx insn) { rtx n; if (nlabel) - n = gen_rtx_LABEL_REF (VOIDmode, nlabel); + n = gen_rtx_LABEL_REF (Pmode, nlabel); else n = gen_rtx_RETURN (VOIDmode); @@ -1554,7 +1554,7 @@ redirect_exp_1 (rtx *loc, rtx olabel, rtx nlabel, rtx insn) else if (code == RETURN && olabel == 0) { if (nlabel) - x = gen_rtx_LABEL_REF (VOIDmode, nlabel); + x = gen_rtx_LABEL_REF (Pmode, nlabel); else x = gen_rtx_RETURN (VOIDmode); if (loc == &PATTERN (insn)) -- cgit v1.1