aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2003-01-25 23:32:20 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2003-01-25 23:32:20 +0000
commit5a09edba1f72e8f2781127c38f45c9b36dea7509 (patch)
tree26bf3ce6a5ddcf9e271cc3fd31c43e5cd4983944 /gcc/final.c
parentf5818c0c87a2257c4f32ddd5e584ee2cb82e3133 (diff)
downloadgcc-5a09edba1f72e8f2781127c38f45c9b36dea7509.zip
gcc-5a09edba1f72e8f2781127c38f45c9b36dea7509.tar.gz
gcc-5a09edba1f72e8f2781127c38f45c9b36dea7509.tar.bz2
final.c (shorten_branches): Align the address of code label when computing initial lengths and addresses.
* final.c (shorten_branches): Align the address of code label when computing initial lengths and addresses. From-SVN: r61803
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 103f65d..86b0b2f 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -991,7 +991,7 @@ shorten_branches (first)
}
}
- INSN_ADDRESSES (uid) = insn_current_address;
+ INSN_ADDRESSES (uid) = insn_current_address + insn_lengths[uid];
if (GET_CODE (insn) == NOTE || GET_CODE (insn) == BARRIER
|| GET_CODE (insn) == CODE_LABEL)