From: Jeffrey A Law Date: Sun, 8 Mar 1998 12:04:17 +0000 (+0000) Subject: final.c (shorten_branches): Fix minor logic error in ADDR_DIFF_VEC shortening support. X-Git-Tag: prereleases/egcs-1.1-prerelease~2158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e75ef4aca22a5c6ac6e32dd46e8035793bd9607;p=thirdparty%2Fgcc.git final.c (shorten_branches): Fix minor logic error in ADDR_DIFF_VEC shortening support. * final.c (shorten_branches): Fix minor logic error in ADDR_DIFF_VEC shortening support. From-SVN: r18443 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b957252025c..87b27d87307e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Mar 8 13:01:56 1998 Jeffrey A Law (law@cygnus.com) + + * final.c (shorten_branches): Fix minor logic error in + ADDR_DIFF_VEC shortening support. + Sun Mar 8 02:17:42 PST 1998 Jeff Law (law@cygnus.com) * version.c: Bump for snapshot. diff --git a/gcc/final.c b/gcc/final.c index 99d20d14e559..d00a05e0b098 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1296,10 +1296,10 @@ shorten_branches (first) insn_last_address = insn_addresses[uid]; insn_addresses[uid] = insn_current_address; +#ifdef CASE_VECTOR_SHORTEN_MODE if (optimize && GET_CODE (insn) == JUMP_INSN && GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC) { -#ifdef CASE_VECTOR_SHORTEN_MODE rtx body = PATTERN (insn); int old_length = insn_lengths[uid]; rtx rel_lab = XEXP (XEXP (body, 0), 0); @@ -1397,9 +1397,10 @@ shorten_branches (first) something_changed = 1; #endif continue; -#endif /* CASE_VECTOR_SHORTEN_MODE */ } - else if (! (varying_length[uid])) +#endif /* CASE_VECTOR_SHORTEN_MODE */ + + if (! (varying_length[uid])) { insn_current_address += insn_lengths[uid]; continue;