diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-10-22 19:15:16 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-10-22 19:15:16 +0000 |
commit | ca1848eba215b648ae98a9594d275568d954826d (patch) | |
tree | 6361c31e399419c86f08ecacb40cb4d76c9510a8 /gcc/mips-tfile.c | |
parent | 74897750ec2c5c2ce49e62236d2f1d50c4a6fb00 (diff) | |
download | gcc-ca1848eba215b648ae98a9594d275568d954826d.tar.gz |
Ignore a stab line number of 0, until G++ fixes bug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 78f8236607a..bebd5af9813 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; } |