From 8a2d2f90c9083ba50e2033b6774e06ee3121c112 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 1 Dec 1992 14:39:27 +0000 Subject: [PATCH] If -g1, do not emit line number at function prologue, it confuses gdb. From-SVN: r2826 --- gcc/config/mips/mips.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index cee901e..912a8eb 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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); -- 2.7.4