final.c (shorten_branches): Align the address of code label when computing initial...
authorKaz Kojima <kkojima@gcc.gnu.org>
Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)
        * final.c (shorten_branches): Align the address of code label
        when computing initial lengths and addresses.

From-SVN: r61803

gcc/ChangeLog
gcc/final.c

index 1b3a30023cba9ad1f0bc8c1e3740dc818926fc79..dc05aee73aea2dc98bc027f934e4805fab52a630 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 103f65d7a1f0b5ff0b94bb6651cf2092427ad145..86b0b2f6f41b634f76af76c168d32c00876dcb10 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)