(final): Update insn_current_address before calling final_scan_insn.

From-SVN: r12918
This commit is contained in:
Torbjorn Granlund 1996-10-08 23:36:57 +00:00
parent 1fe33d17b9
commit 2f16edb13c

View 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. */