aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/final.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 1bc9e7c..d82d553 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)