From: hubicka Date: Tue, 1 Jun 2010 20:29:41 +0000 (+0000) Subject: * emit-rtl.c (remove_insn): Fix thinko in prevoius patch. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f0c143cfb4c6031a3935dda0121b9dd767db7f;p=thirdparty%2Fgcc.git * emit-rtl.c (remove_insn): Fix thinko in prevoius patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160121 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf17b3a09379..df5d3c648b4a 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 d51481f4d704..3f7fb5f895ab 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