From: Clinton Popetz Date: Thu, 20 Jan 2000 00:41:52 +0000 (+0000) Subject: emit-rtl.c (try_split): Return last_insn if we split the last_insn. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba52f355e32ed5652dd545982dc6baeac06ba5d9;p=gcc.git emit-rtl.c (try_split): Return last_insn if we split the last_insn. * emit-rtl.c (try_split): Return last_insn if we split the last_insn. From-SVN: r31530 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6118c7b8baa..d49d719ab59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-01-19 Clinton Popetz + + * emit-rtl.c (try_split): Return last_insn if we split the + last_insn. + Thu Jan 20 01:01:23 MET 2000 Jan Hubicka * i386-protos.h (ix86_compute_frame_size): Remove prototype. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 3ade3c64c47..2c763066777 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2258,7 +2258,9 @@ try_split (pat, trial, last) /* Return either the first or the last insn, depending on which was requested. */ - return last ? prev_active_insn (after) : next_active_insn (before); + return last + ? (after ? prev_active_insn (after) : last_insn) + : next_active_insn (before); } return trial;