aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2010-09-07 10:25:11 -0700
committerRichard Henderson <rth@gcc.gnu.org>2010-09-07 10:25:11 -0700
commit3bc6b3e6fc40559519e7078c3f549d0e87bdf8be (patch)
tree7e57ac89de2bf5bd7f6fbbe53ca3236920a648e3 /gcc/final.c
parentaa2298043c59f24bfea30f1c8f2207d0caf6e28b (diff)
downloadgcc-3bc6b3e6fc40559519e7078c3f549d0e87bdf8be.zip
gcc-3bc6b3e6fc40559519e7078c3f549d0e87bdf8be.tar.gz
gcc-3bc6b3e6fc40559519e7078c3f549d0e87bdf8be.tar.bz2
Define target hook TARGET_UNWIND_EMIT_BEFORE_INSN.
From-SVN: r163961
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 73c6069..06ebc17 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -2655,7 +2655,8 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
/* ??? This will put the directives in the wrong place if
get_insn_template outputs assembly directly. However calling it
before get_insn_template breaks if the insns is split. */
- if (targetm.asm_out.unwind_emit)
+ if (targetm.asm_out.unwind_emit_before_insn
+ && targetm.asm_out.unwind_emit)
targetm.asm_out.unwind_emit (asm_out_file, insn);
if (CALL_P (insn))
@@ -2713,6 +2714,10 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
dwarf2out_frame_debug (insn, true);
#endif
+ if (!targetm.asm_out.unwind_emit_before_insn
+ && targetm.asm_out.unwind_emit)
+ targetm.asm_out.unwind_emit (asm_out_file, insn);
+
current_output_insn = debug_insn = 0;
}
}