From: Michael Meissner Date: Tue, 1 Dec 1992 14:39:27 +0000 (+0000) Subject: If -g1, do not emit line number at function prologue, it confuses gdb. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a2d2f90c9083ba50e2033b6774e06ee3121c112;p=gcc.git If -g1, do not emit line number at function prologue, it confuses gdb. From-SVN: r2826 --- diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index cee901ef8de..912a8eb40d3 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);