diff options
author | Nick Clifton <nickc@redhat.com> | 2006-07-13 07:55:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2006-07-13 07:55:25 +0000 |
commit | 6915d7f00283de626f37d60b13bb62784ae5f1f7 (patch) | |
tree | 9514fd029d11178f7efaaa68756e9e1cf53245c9 /gcc | |
parent | 7c0de6a544ba5d293eab1f91b70e017ef5d5834f (diff) | |
download | gcc-6915d7f00283de626f37d60b13bb62784ae5f1f7.zip gcc-6915d7f00283de626f37d60b13bb62784ae5f1f7.tar.gz gcc-6915d7f00283de626f37d60b13bb62784ae5f1f7.tar.bz2 |
sh.c (sh_reorg): Ignore deleted insns whilst walking the LOG_LINKS chain.
* config/sh/sh.c (sh_reorg): Ignore deleted insns whilst walking the
LOG_LINKS chain.
From-SVN: r115412
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e907dd..dd490fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-07-13 Nick Clifton <nickc@redhat.com> + + * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst + walking the LOG_LINKS chain. + 2006-07-12 Geoffrey Keating <geoffk@apple.com> * doc/invoke.texi (C++ Dialect Options): Explain difference diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 7e11e3f..97d8741 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -4466,12 +4466,17 @@ sh_reorg (void) for (link = LOG_LINKS (insn); link; link = XEXP (link, 1)) { + rtx linked_insn; + if (REG_NOTE_KIND (link) != 0) continue; - set = single_set (XEXP (link, 0)); - if (set && rtx_equal_p (reg, SET_DEST (set))) + linked_insn = XEXP (link, 0); + set = single_set (linked_insn); + if (set + && rtx_equal_p (reg, SET_DEST (set)) + && ! INSN_DELETED_P (linked_insn)) { - link = XEXP (link, 0); + link = linked_insn; break; } } |