Commit 5e75ef4a by Jeffrey A Law Committed by Jeff Law

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
parent 99613661
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) Sun Mar 8 02:17:42 PST 1998 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot. * version.c: Bump for snapshot.
......
...@@ -1296,10 +1296,10 @@ shorten_branches (first) ...@@ -1296,10 +1296,10 @@ shorten_branches (first)
insn_last_address = insn_addresses[uid]; insn_last_address = insn_addresses[uid];
insn_addresses[uid] = insn_current_address; insn_addresses[uid] = insn_current_address;
#ifdef CASE_VECTOR_SHORTEN_MODE
if (optimize && GET_CODE (insn) == JUMP_INSN if (optimize && GET_CODE (insn) == JUMP_INSN
&& GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC) && GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC)
{ {
#ifdef CASE_VECTOR_SHORTEN_MODE
rtx body = PATTERN (insn); rtx body = PATTERN (insn);
int old_length = insn_lengths[uid]; int old_length = insn_lengths[uid];
rtx rel_lab = XEXP (XEXP (body, 0), 0); rtx rel_lab = XEXP (XEXP (body, 0), 0);
...@@ -1397,9 +1397,10 @@ shorten_branches (first) ...@@ -1397,9 +1397,10 @@ shorten_branches (first)
something_changed = 1; something_changed = 1;
#endif #endif
continue; 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]; insn_current_address += insn_lengths[uid];
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment