aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-29 15:02:42 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-29 15:02:42 -0700
commitb1a9f6a07ab0821c162af840fd626bbb1c7c80ea (patch)
tree3d6ee2684314a0d677dd16c920c827481f49242f /gcc/final.c
parentc5daf9c4e9a5b388e28a69e13dd34e7e15f40253 (diff)
downloadgcc-b1a9f6a07ab0821c162af840fd626bbb1c7c80ea.zip
gcc-b1a9f6a07ab0821c162af840fd626bbb1c7c80ea.tar.gz
gcc-b1a9f6a07ab0821c162af840fd626bbb1c7c80ea.tar.bz2
final.c (current_output_insn): New.
* final.c (current_output_insn): New. (final_scan_insn): Set it. * output.h: Declare it. From-SVN: r34258
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 9d1ca33..ae0e9cb 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -140,7 +140,8 @@ Boston, MA 02111-1307, USA. */
#endif
/* Last insn processed by final_scan_insn. */
-static rtx debug_insn = 0;
+static rtx debug_insn;
+rtx current_output_insn;
/* Line number of last NOTE. */
static int last_linenum;
@@ -2925,7 +2926,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
NOTICE_UPDATE_CC (body, insn);
#endif
- debug_insn = insn;
+ current_output_insn = debug_insn = insn;
#if defined (DWARF2_UNWIND_INFO)
/* If we push arguments, we want to know where the calls are. */
@@ -3007,7 +3008,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
INSN_DELETED_P (insn) = 1;
#endif
- debug_insn = 0;
+ current_output_insn = debug_insn = 0;
}
}
return NEXT_INSN (insn);