If -g1, do not emit line number at function prologue, it confuses gdb.
authorMichael Meissner <meissner@gcc.gnu.org>
Tue, 1 Dec 1992 14:39:27 +0000 (14:39 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 1 Dec 1992 14:39:27 +0000 (14:39 +0000)
From-SVN: r2826

gcc/config/mips/mips.c

index cee901ef8def1894e74db2a32eeed5026104b1db..912a8eb40d36a17bc08dc5dc5ec84a224f7ac4a4 100644 (file)
@@ -4068,7 +4068,9 @@ function_prologue (file, size)
   int tsize = current_frame_info.total_size;
 
   ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl));
-  ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl));
+
+  if (debug_info_level != DINFO_LEVEL_TERSE)
+    ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl));
 
   inside_function = 1;
   fputs ("\t.ent\t", file);