aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@st.com>2005-04-25 12:46:12 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2005-04-25 13:46:12 +0100
commit4c33cb26d4c5da87d48e6db6ba6832aaabf358fb (patch)
tree91a9d5e5f1890e7f54fe29873cf50968a8f566e8 /gcc/loop.c
parenta26b6b94b9ea3370110bf9b86057b83646304aa8 (diff)
downloadgcc-4c33cb26d4c5da87d48e6db6ba6832aaabf358fb.zip
gcc-4c33cb26d4c5da87d48e6db6ba6832aaabf358fb.tar.gz
gcc-4c33cb26d4c5da87d48e6db6ba6832aaabf358fb.tar.bz2
re PR rtl-optimization/20413 (VOIDmode LABEL_REFs are generated)
2005-04-25 J"orn Rennecke <joern.rennecke@st.com> Stephen Clarke <stevec@superh.com> Roger Sayle <roger@eyesopen.com> 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 <roger@eyesopen.com> Co-Authored-By: Stephen Clarke <stevec@superh.com> From-SVN: r98711
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index a61c8df..eaa1bd9 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -5074,7 +5074,7 @@ reg_dead_after_loop (const struct loop *loop, rtx reg)
/* HACK: Must also search the loop fall through exit, create a label_ref
here which points to the loop->end, and append the loop_number_exit_labels
list to it. */
- label = gen_rtx_LABEL_REF (VOIDmode, loop->end);
+ label = gen_rtx_LABEL_REF (Pmode, loop->end);
LABEL_NEXTREF (label) = loop->exit_labels;
for (; label; label = LABEL_NEXTREF (label))