(final): Update insn_current_address before calling final_scan_insn.
authorTorbjorn Granlund <tege@gnu.org>
Tue, 8 Oct 1996 23:36:57 +0000 (23:36 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Tue, 8 Oct 1996 23:36:57 +0000 (23:36 +0000)
From-SVN: r12918

gcc/final.c

index 900f0bae87e7b9e1fb95310fa50d6427e662b68d..1dddfe2561c3a00f775ee023e07aa1590c0caa7a 100644 (file)
@@ -1246,7 +1246,12 @@ final (first, file, optimize, prescan)
 
   /* Output the insns.  */
   for (insn = NEXT_INSN (first); insn;)
-    insn = final_scan_insn (insn, file, optimize, prescan, 0);
+    {
+#ifdef HAVE_ATTR_length
+      insn_current_address = insn_addresses[INSN_UID (insn)];
+#endif
+      insn = final_scan_insn (insn, file, optimize, prescan, 0);
+    }
 
   /* Do basic-block profiling here
      if the last insn was a conditional branch.  */