aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2002-06-11 17:51:24 -0600
committerJeff Law <law@gcc.gnu.org>2002-06-11 17:51:24 -0600
commitc6a3fcf029e62013046f95cb88efd06e75336910 (patch)
tree220e70ead859d0c33a794ebc57b97cc861d7707e /gcc
parent4c4eb375f3e90752a4c189d9a3e08fe36131e474 (diff)
downloadgcc-c6a3fcf029e62013046f95cb88efd06e75336910.zip
gcc-c6a3fcf029e62013046f95cb88efd06e75336910.tar.gz
gcc-c6a3fcf029e62013046f95cb88efd06e75336910.tar.bz2
emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the last insn created by the splitter.
* emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the last insn created by the splitter. From-SVN: r54535
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/emit-rtl.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 995ee28..1e1174d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index bdcd1cd..2af1bae 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -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)