From: kkojima Date: Thu, 27 Aug 2009 22:56:41 +0000 (+0000) Subject: * config/sh/sh.c (split_branches): Check the result of X-Git-Tag: upstream/4.9.2~34072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03dac8f94ce713078c070ea691178176bef48b5c;p=platform%2Fupstream%2Flinaro-gcc.git * config/sh/sh.c (split_branches): Check the result of next_active_insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151152 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b0a6af..de1e1c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-27 Kaz Kojima + + * config/sh/sh.c (split_branches): Check the result of + next_active_insn. + 2009-08-27 Steve Ellcey * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 71933d6..ed8a698 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -5841,9 +5841,10 @@ split_branches (rtx first) next = next_active_insn (insn); - if ((JUMP_P (next) - || ((next = next_active_insn (next)) - && JUMP_P (next))) + if (next + && (JUMP_P (next) + || ((next = next_active_insn (next)) + && JUMP_P (next))) && GET_CODE (PATTERN (next)) == SET && recog_memoized (next) == CODE_FOR_jump_compact && ((INSN_ADDRESSES