]> gcc.gnu.org Git - gcc.git/commitdiff
sh.c (split_branches): Check the result of next_active_insn.
authorKaz Kojima <kkojima@gcc.gnu.org>
Thu, 27 Aug 2009 22:56:41 +0000 (22:56 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Thu, 27 Aug 2009 22:56:41 +0000 (22:56 +0000)
* config/sh/sh.c (split_branches): Check the result of
next_active_insn.

From-SVN: r151152

gcc/ChangeLog
gcc/config/sh/sh.c

index 8b0a6af99713d2c6a5d4793868fc7ca77f49fa86..de1e1c5f6e739c872f6e54ec84c7d9feac426e11 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * config/sh/sh.c (split_branches): Check the result of
+       next_active_insn.
+
 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
 
        * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
index 71933d64913c7665b143d86399b7458e10a9c51e..ed8a698cbbc649d1ab41ddbf66daf3cccfab5409 100644 (file)
@@ -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
This page took 0.094868 seconds and 5 git commands to generate.