(final_scan_insn): Call dwarfout_begin_function.
authorTom Wood <wood@gnu.org>
Wed, 7 Oct 1992 20:23:56 +0000 (20:23 +0000)
committerTom Wood <wood@gnu.org>
Wed, 7 Oct 1992 20:23:56 +0000 (20:23 +0000)
(final_end_function): Call dwarfout_end_function.

From-SVN: r2359

gcc/final.c

index 1bc9e7cd1f7e60d6100eef2c826629e5b9356e24..d82d55347090588c09368a4a0c6702805daca30e 100644 (file)
@@ -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);
@@ -1010,6 +1015,10 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
 #ifdef XCOFF_DEBUGGING_INFO
          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;
        }