Commit 5a32a90c by Joern Rennecke Committed by Jeff Law

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

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

From-SVN: r18430
parent 19cbe68d
...@@ -1140,7 +1140,15 @@ shorten_branches (first) ...@@ -1140,7 +1140,15 @@ shorten_branches (first)
body = PATTERN (insn); body = PATTERN (insn);
if (GET_CODE (body) == ADDR_VEC || GET_CODE (body) == ADDR_DIFF_VEC) 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) else if (asm_noperands (body) >= 0)
insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn); insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn);
else if (GET_CODE (body) == SEQUENCE) else if (GET_CODE (body) == SEQUENCE)
......
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