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
This commit is contained in:
Kaz Kojima 2003-01-25 23:32:20 +00:00
parent f5818c0c87
commit 5a09edba1f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
* final.c (shorten_branches): Align the address of code label
when computing initial lengths and addresses.
2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
* config/m68hc11/m68hc11.md: Fix a comment typo.

View File

@ -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)