emit-rtl.c (try_split): Return last_insn if we split the last_insn.
authorClinton Popetz <cpopetz@cygnus.com>
Thu, 20 Jan 2000 00:41:52 +0000 (00:41 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Thu, 20 Jan 2000 00:41:52 +0000 (19:41 -0500)
* emit-rtl.c (try_split): Return last_insn if we split the
last_insn.

From-SVN: r31530

gcc/ChangeLog
gcc/emit-rtl.c

index 6118c7b8baa56623eb5e2cbd3b164a3d5c7b270e..d49d719ab592633cd4b5b6ad6b0638e3aefb545c 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
+
+       * emit-rtl.c (try_split): Return last_insn if we split the 
+       last_insn.
+
 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
 
        * i386-protos.h (ix86_compute_frame_size): Remove prototype.
index 3ade3c64c47731010b45a9c540a999bf409faf30..2c763066777032029aabd2b88932844975ecb749 100644 (file)
@@ -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;