From fb9ef4c18e7f5294fab9ba71f6d1fe1c03eae7aa Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 1 Jun 2010 22:29:41 +0200 Subject: [PATCH] * emit-rtl.c (remove_insn): Fix thinko in prevoius patch. From-SVN: r160121 --- gcc/ChangeLog | 4 ++++ gcc/emit-rtl.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf17b3a0937..df5d3c648b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-06-01 Jan Hubicka + + * emit-rtl.c (remove_insn): Fix thinko in prevoius patch. + 2010-06-01 Nathan Froyd * tree.h (build_nt_call_list): Delete. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index d51481f4d70..3f7fb5f895a 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3856,7 +3856,8 @@ remove_insn (rtx insn) } else if (get_insns () == insn) { - PREV_INSN (next) = NULL; + if (next) + PREV_INSN (next) = NULL; set_first_insn (next); } else