Ignore a stab line number of 0, until G++ fixes bug.
authorMichael Meissner <meissner@gcc.gnu.org>
Thu, 22 Oct 1992 19:15:16 +0000 (19:15 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 22 Oct 1992 19:15:16 +0000 (19:15 +0000)
From-SVN: r2562

gcc/mips-tfile.c

index 78f8236607a8c2007df84671b7ea242bddb0d5fe..bebd5af98137a89e3999c93729c1287b56b405e7 100644 (file)
@@ -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;
        }