final.c (shorten_branches): Restore accidentally removed code.

8
        * final.c (shorten_branches): Restore accidentally removed code.

From-SVN: r18430
This commit is contained in:
Joern Rennecke 1998-03-06 03:41:22 -07:00 committed by Jeff Law
parent 19cbe68d27
commit 5a32a90c0b
1 changed files with 9 additions and 1 deletions

View File

@ -1140,7 +1140,15 @@ shorten_branches (first)
body = PATTERN (insn);
if (GET_CODE (body) == ADDR_VEC || GET_CODE (body) == ADDR_DIFF_VEC)
; /* This should be handled by LABEL_ALIGN. */
{
/* This only takes room if read-only data goes into the text
section. */
#if !defined(READONLY_DATA_SECTION) || defined(JUMP_TABLES_IN_TEXT_SECTION)
insn_lengths[uid] = (XVECLEN (body, GET_CODE (body) == ADDR_DIFF_VEC)
* GET_MODE_SIZE (GET_MODE (body)));
/* Alignment is handled by ADDR_VEC_ALIGN. */
#endif
}
else if (asm_noperands (body) >= 0)
insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn);
else if (GET_CODE (body) == SEQUENCE)