Commit 2f16edb1 by Torbjorn Granlund

(final): Update insn_current_address before calling final_scan_insn.

From-SVN: r12918
parent 1fe33d17
...@@ -1246,7 +1246,12 @@ final (first, file, optimize, prescan) ...@@ -1246,7 +1246,12 @@ final (first, file, optimize, prescan)
/* Output the insns. */ /* Output the insns. */
for (insn = NEXT_INSN (first); insn;) 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 /* Do basic-block profiling here
if the last insn was a conditional branch. */ if the last insn was a conditional branch. */
......
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