From 244d05fb87c29bd539630243bef9b1d0be00fcf2 Mon Sep 17 00:00:00 2001 From: Josef Zlomek Date: Mon, 27 Jan 2003 12:30:35 +0100 Subject: [PATCH] * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL. From-SVN: r61884 --- gcc/ChangeLog | 4 ++++ gcc/gcse.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1b1152aed5..009fc55f487 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-01-27 Josef Zlomek + + * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL. + 2003-01-27 Richard Earnshaw PR optimization/9090 diff --git a/gcc/gcse.c b/gcc/gcse.c index a68374de953..f25a4cfddf4 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4126,6 +4126,7 @@ constprop_register (insn, from, to, alter_jumps) conditional branch instructions first. */ if (alter_jumps && (sset = single_set (insn)) != NULL + && NEXT_INSN (insn) && any_condjump_p (NEXT_INSN (insn)) && onlyjump_p (NEXT_INSN (insn))) { rtx dest = SET_DEST (sset);