$NetBSD: patch-ab,v 1.1 2006/01/13 07:51:42 rillig Exp $

This patch avoid tons of #line warnings when parsing the output of newer
gcc.

--- src/c-lex.c.orig	2003-09-10 20:52:02.000000000 +0200
+++ src/c-lex.c	2008-07-27 15:29:09.000000000 -0400
@@ -96,8 +96,8 @@ static location make_location(struct Loc
     return last_allocated_location;
 
   last_allocated_location = ralloc(parse_region, struct Location);
+  l.location_index = next_location_index++;
   *last_allocated_location = l;
-  last_allocated_location->location_index = next_location_index++;
 
   return last_allocated_location;
 }
@@ -843,6 +843,9 @@ linenum:
 	  c = GETC();
 	  while (c == ' ' || c == '\t')
 	    c = GETC();
+	  /* Skip the file type (3 = system header, ...) of gcc */
+	  if (isdigit(c))
+	    c = GETC();
 	  if (c == '\n')
 	    return c;
 	  UNGETC (c);
