From: Kaz Kojima Date: Thu, 27 Aug 2009 22:56:41 +0000 (+0000) Subject: sh.c (split_branches): Check the result of next_active_insn. X-Git-Tag: releases/gcc-4.5.0~3812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d6f306434996c51d6f7fddb28bce781d60cdef;p=thirdparty%2Fgcc.git sh.c (split_branches): Check the result of next_active_insn. * config/sh/sh.c (split_branches): Check the result of next_active_insn. From-SVN: r151152 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b0a6af99713..de1e1c5f6e73 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 71933d64913c..ed8a698cbbc6 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