summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorwood <wood@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-07 20:23:56 +0000
committerwood <wood@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-07 20:23:56 +0000
commit0e3f32fe8d08d5751007243f8dd56ee34489c5a7 (patch)
tree07c4b5eafb78c87b8c512f7ea7d76dfb34dfbbc8 /gcc/final.c
parent6c56d7d1b9027c161626a17f6e8d5d4343f26a5a (diff)
downloadgcc-0e3f32fe8d08d5751007243f8dd56ee34489c5a7.tar.gz
(final_scan_insn): Call dwarfout_begin_function.
(final_end_function): Call dwarfout_end_function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2359 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 1bc9e7cd1f7..d82d5534709 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -843,6 +843,11 @@ final_end_function (first, file, optimize)
sdbout_end_function (last_linenum);
#endif
+#ifdef DWARF_DEBUGGING_INFO
+ if (write_symbols == DWARF_DEBUG)
+ dwarfout_end_function ();
+#endif
+
#ifdef XCOFF_DEBUGGING_INFO
if (write_symbols == XCOFF_DEBUG)
xcoffout_end_function (file, last_linenum);
@@ -1011,6 +1016,10 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
if (write_symbols == XCOFF_DEBUG)
xcoffout_begin_function (file, last_linenum);
#endif
+#ifdef DWARF_DEBUGGING_INFO
+ if (write_symbols == DWARF_DEBUG)
+ dwarfout_begin_function ();
+#endif
break;
}
if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_DELETED)