OSDN Git Service

* final.c (shorten_branches): Align the address of code label
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)
        when computing initial lengths and addresses.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61803 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/final.c

index 1b3a300..dc05aee 100644 (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.
index 103f65d..86b0b2f 100644 (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)