From: Richard Earnshaw Date: Mon, 21 Jun 1999 23:21:23 +0000 (+0000) Subject: final.c (shorten_branches): Don't try to split an insn that has been deleted. X-Git-Tag: prereleases/gcc-2.95-test~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6289955fe802405c51cac94168a6f17511f9a23;p=thirdparty%2Fgcc.git final.c (shorten_branches): Don't try to split an insn that has been deleted. Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com) * final.c (shorten_branches): Don't try to split an insn that has been deleted. From-SVN: r27689 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2798ee8d8a4..e2b7e5636faf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com) + + * final.c (shorten_branches): Don't try to split an insn that has + been deleted. + Mon Jun 21 23:32:17 1999 Jeffrey A Law (law@cygnus.com) Thu Jun 17 15:07 1999 Bruce Korb diff --git a/gcc/final.c b/gcc/final.c index 4695590dc5e9..a9ae2804dbde 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -999,7 +999,9 @@ shorten_branches (first) if (GET_RTX_CLASS (GET_CODE (insn)) == 'i') { rtx old = insn; - insn = try_split (PATTERN (old), old, 1); + /* Don't split the insn if it has been deleted. */ + if (! INSN_DELETED_P (old)) + insn = try_split (PATTERN (old), old, 1); /* When not optimizing, the old insn will be still left around with only the 'deleted' bit set. Transform it into a note to avoid confusion of subsequent processing. */