]> gcc.gnu.org Git - gcc.git/commitdiff
(shorten_branches): Conditionalize last change
authorRichard Stallman <rms@gnu.org>
Mon, 31 May 1993 03:59:30 +0000 (03:59 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 31 May 1993 03:59:30 +0000 (03:59 +0000)
on SHORTEN_WITH_ADJUST_INSN_LENGTH.

(shorten_branches): Call ADJUST_INSN_LENGTH during the shortening phase.

From-SVN: r4600

gcc/final.c

index 5834010663aa91b5210a93ed0c37b29b451f0649..67a30fa35323d10c2f8aa445221ad8b1c134e9b7 100644 (file)
@@ -587,6 +587,7 @@ shorten_branches (first)
           insn = NEXT_INSN (insn))
        {
          int new_length;
+         int tmp_length;
 
          uid = INSN_UID (insn);
          insn_addresses[uid] = insn_current_address;
@@ -630,6 +631,16 @@ shorten_branches (first)
              new_length = insn_current_length (insn);
              insn_current_address += new_length;
            }
+
+#ifdef SHORTEN_WITH_ADJUST_INSN_LENGTH
+#ifdef ADJUST_INSN_LENGTH
+         /* If needed, do any adjustment.  */
+         tmp_length = new_length;
+         ADJUST_INSN_LENGTH (insn, new_length);
+         insn_current_address += (new_length - tmp_length);
+#endif
+#endif
+
          if (new_length != insn_lengths[uid])
            {
              insn_lengths[uid] = new_length;
This page took 0.066287 seconds and 5 git commands to generate.