diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf17b3a..df5d3c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-06-01 Jan Hubicka <jh@suse.cz> + + * emit-rtl.c (remove_insn): Fix thinko in prevoius patch. + 2010-06-01 Nathan Froyd <froydnj@codesourcery.com> * tree.h (build_nt_call_list): Delete. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index d51481f..3f7fb5f 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 |