diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-06-21 23:22:35 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-06-21 23:22:35 +0000 |
commit | 46c7e57bf0f01ee2a4a80744f9ccea6b325feb6f (patch) | |
tree | 4ef0beb50e93daa6903b35247f2027365afc1a78 /gcc/final.c | |
parent | 43559d188d60f9941612abf27da98335102e1624 (diff) | |
download | gcc-46c7e57bf0f01ee2a4a80744f9ccea6b325feb6f.tar.gz |
H
* final.c (shorten_branches): Don't try to split an insn that has
been deleted.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27691 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c index 4695590dc5e..a9ae2804dbd 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. */ |