Commit 5a09edba by Kaz Kojima

final.c (shorten_branches): Align the address of code label when computing…

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
parent f5818c0c
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> 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
* config/m68hc11/m68hc11.md: Fix a comment typo. * config/m68hc11/m68hc11.md: Fix a comment typo.
......
...@@ -991,7 +991,7 @@ shorten_branches (first) ...@@ -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 if (GET_CODE (insn) == NOTE || GET_CODE (insn) == BARRIER
|| GET_CODE (insn) == CODE_LABEL) || GET_CODE (insn) == CODE_LABEL)
......
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