(sdb_begin_function_line): New declaration.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 5 Jun 1995 23:17:21 +0000 (19:17 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 5 Jun 1995 23:17:21 +0000 (19:17 -0400)
(PUT_SDB_FUNCTION_END): New definition.

From-SVN: r9882

gcc/config/mips/mips.h

index 2f7ce3a8da11167bce077ea78a1c46405e4fe835..cd004df1485ce8c41cd0af908ab3dc9eef91156f 100644 (file)
@@ -101,6 +101,7 @@ extern int inside_function;         /* != 0 if inside of a function */
 extern int ignore_line_number;         /* != 0 if we are to ignore next .loc */
 extern int file_in_function_warning;   /* warning given about .file in func */
 extern int sdb_label_count;            /* block start/end next label # */
+extern int sdb_begin_function_line;     /* Starting Line of current function */
 extern int mips_section_threshold;     /* # bytes of data/sdata cutoff */
 extern int g_switch_value;             /* value of the -G xx switch */
 extern int g_switch_set;               /* whether -G xx was passed.  */
@@ -912,7 +913,11 @@ do {                                                       \
 
 #define PUT_SDB_FUNCTION_START(LINE)
 
-#define PUT_SDB_FUNCTION_END(LINE)
+#define PUT_SDB_FUNCTION_END(LINE)            \
+do {                                                  \
+  extern FILE *asm_out_text_file;             \
+  ASM_OUTPUT_SOURCE_LINE (asm_out_text_file, LINE + sdb_begin_function_line); \
+} while (0)
 
 #define PUT_SDB_EPILOGUE_END(NAME)