emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the last insn created...
authorJeff Law <law@redhat.com>
Tue, 11 Jun 2002 23:51:24 +0000 (17:51 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 11 Jun 2002 23:51:24 +0000 (17:51 -0600)
        * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
        last insn created by the splitter.

From-SVN: r54535

gcc/ChangeLog
gcc/emit-rtl.c

index 995ee28869cf0d96df51265776b0cb1e841f03ec..1e1174d67ca9d4c8ad228c7ef7d04b223a07a432 100644 (file)
@@ -112,6 +112,9 @@ Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
 2002-06-11  Jeffrey Law <law@redhat.com>
 
+       * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
+       last insn created by the splitter.
+
        * caller-save.c (init_caller_save): Move creation of SAVEINSN
        and RESTINSN into into the scope of the sequence.
 
index bdcd1cd03ccffabc906f6f84bcaf76c54e1daaef..2af1bae86cf2ec15c7047ed0549ecb5b3bf12e3a 100644 (file)
@@ -3222,7 +3222,7 @@ try_split (pat, trial, last)
             usage count so we don't delete the label.  */
          if (GET_CODE (trial) == INSN)
            {
-             insn = last_insn;
+             insn = insn_last;
              while (insn != NULL_RTX)
                {
                  if (GET_CODE (insn) == INSN)