From: Alexandre Oliva Date: Sat, 30 Dec 2000 07:53:35 +0000 (+0000) Subject: sh.c (split_branches): Don't dereference re-computed `beyond' before checking it... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b94544e45f60ef83ff0d3d79b66f17aeab00036d;p=gcc.git sh.c (split_branches): Don't dereference re-computed `beyond' before checking it's non-NULL. * config/sh/sh.c (split_branches): Don't dereference re-computed `beyond' before checking it's non-NULL. From-SVN: r38554 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89ff3bd4aac..96db1e072f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-30 Alexandre Oliva + + * config/sh/sh.c (split_branches): Don't dereference re-computed + `beyond' before checking it's non-NULL. + 2000-12-29 Robert Lipe diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 8f25be8b43b..ee64d78b5ca 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -3489,8 +3489,8 @@ split_branches (first) if (beyond && (GET_CODE (beyond) == JUMP_INSN - || (GET_CODE (beyond = next_active_insn (beyond)) - == JUMP_INSN)) + || ((beyond = next_active_insn (beyond)) + && GET_CODE (beyond) == JUMP_INSN)) && GET_CODE (PATTERN (beyond)) == SET && recog_memoized (beyond) == CODE_FOR_jump && ((INSN_ADDRESSES