Commit b1a9f6a0 by Richard Henderson Committed by Richard Henderson

final.c (current_output_insn): New.

        * final.c (current_output_insn): New.
        (final_scan_insn): Set it.
        * output.h: Declare it.

From-SVN: r34258
parent c5daf9c4
2000-05-29 Richard Henderson <rth@cygnus.com> 2000-05-29 Richard Henderson <rth@cygnus.com>
* final.c (current_output_insn): New.
(final_scan_insn): Set it.
* output.h: Declare it.
2000-05-29 Richard Henderson <rth@cygnus.com>
* stor-layout.c (finalize_record_size): Fix typo. * stor-layout.c (finalize_record_size): Fix typo.
* jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
...@@ -140,7 +140,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -140,7 +140,8 @@ Boston, MA 02111-1307, USA. */
#endif #endif
/* Last insn processed by final_scan_insn. */ /* 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. */ /* Line number of last NOTE. */
static int last_linenum; static int last_linenum;
...@@ -2925,7 +2926,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -2925,7 +2926,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
NOTICE_UPDATE_CC (body, insn); NOTICE_UPDATE_CC (body, insn);
#endif #endif
debug_insn = insn; current_output_insn = debug_insn = insn;
#if defined (DWARF2_UNWIND_INFO) #if defined (DWARF2_UNWIND_INFO)
/* If we push arguments, we want to know where the calls are. */ /* If we push arguments, we want to know where the calls are. */
...@@ -3007,7 +3008,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -3007,7 +3008,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
INSN_DELETED_P (insn) = 1; INSN_DELETED_P (insn) = 1;
#endif #endif
debug_insn = 0; current_output_insn = debug_insn = 0;
} }
} }
return NEXT_INSN (insn); return NEXT_INSN (insn);
......
...@@ -444,9 +444,11 @@ extern FILE *rtl_dump_file; ...@@ -444,9 +444,11 @@ extern FILE *rtl_dump_file;
#endif #endif
/* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */ /* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
extern struct rtx_def *current_insn_predicate; extern struct rtx_def *current_insn_predicate;
/* Last insn processed by final_scan_insn. */
extern struct rtx_def *current_output_insn;
/* Decide whether DECL needs to be in a writable section. RELOC is the same /* Decide whether DECL needs to be in a writable section. RELOC is the same
as for SELECT_SECTION. */ as for SELECT_SECTION. */
......
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