aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-12-01 14:39:27 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-12-01 14:39:27 +0000
commit8a2d2f90c9083ba50e2033b6774e06ee3121c112 (patch)
tree9380666756883eea59090ff822ac029b646df9b2 /gcc
parent454ae9405895bd2df12b7d6577e20334e981563a (diff)
downloadgcc-8a2d2f90c9083ba50e2033b6774e06ee3121c112.zip
gcc-8a2d2f90c9083ba50e2033b6774e06ee3121c112.tar.gz
gcc-8a2d2f90c9083ba50e2033b6774e06ee3121c112.tar.bz2
If -g1, do not emit line number at function prologue, it confuses gdb.
From-SVN: r2826
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mips/mips.c4
1 files changed, 3 insertions, 1 deletions
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);