aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@cygnus.co.uk>1998-03-06 03:41:22 -0700
committerJeff Law <law@gcc.gnu.org>1998-03-06 03:41:22 -0700
commit5a32a90c0b2304b065060d81d665a0d43a06efee (patch)
treeb14a8e84ab9ce1c04d846469f4b20ca43c0e3dde /gcc/final.c
parent19cbe68d2752db127111a146e08d2110f2b27e59 (diff)
downloadgcc-5a32a90c0b2304b065060d81d665a0d43a06efee.zip
gcc-5a32a90c0b2304b065060d81d665a0d43a06efee.tar.gz
gcc-5a32a90c0b2304b065060d81d665a0d43a06efee.tar.bz2
final.c (shorten_branches): Restore accidentally removed code.
8 * final.c (shorten_branches): Restore accidentally removed code. From-SVN: r18430
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index d1a47a4..5952b10 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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)