From c44779ee22e356cef60bc04479601f65b08f2cc1 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 22 Oct 1992 19:15:16 +0000 Subject: Ignore a stab line number of 0, until G++ fixes bug. From-SVN: r2562 --- gcc/mips-tfile.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gcc') diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 78f8236..bebd5af 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -3666,7 +3666,7 @@ parse_stabs_common (string_start, string_end, rest) if (code == (int)N_SLINE) { - SYMR *sym_ptr; + SYMR *sym_ptr, dummy_symr; shash_t *shash_ptr; /* Skip ,0, */ @@ -3684,9 +3684,16 @@ parse_stabs_common (string_start, string_end, rest) return; } - if (code < 0 || code >= 0x100000) + /* Ignore line number 0 for now until G++ bug that generates them is fixed. */ + if (code == 0) + return; + + dummy_symr.index = code; + if (dummy_symr.index != code) { - error ("Line number for .stabs/.stabn directive cannot fit in index field (20 bits)"); + error ("Line number (%d) for .stabs/.stabn directive cannot fit in index field (20 bits)", + code); + return; } -- cgit v1.1