From 2f16edb13c60fa51c5e159c000aed13fff98d58f Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Tue, 8 Oct 1996 23:36:57 +0000 Subject: [PATCH] (final): Update insn_current_address before calling final_scan_insn. From-SVN: r12918 --- gcc/final.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/final.c b/gcc/final.c index 900f0bae87e7..1dddfe2561c3 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -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. */