]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cppmain.c: Update print.lineno with -P.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Mon, 18 Dec 2000 19:31:54 +0000 (19:31 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 18 Dec 2000 19:31:54 +0000 (19:31 +0000)
From-SVN: r38359

gcc/ChangeLog
gcc/cppmain.c

index 76be2af58508d4f0d0122383d261aef2f888657e..37df328f49379820db70ef2556ba63d6098c940d 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-18  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+        * cppmain.c: Update print.lineno with -P.
+
 2000-12-18  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * c-lex.c: s/change_file/file_change.
index ed6858e3c1f3045e9031ac9f5a68ce25b175ef77..ace260ca8cae3a3d28db7eaa05ec89353dfcde29 100644 (file)
@@ -284,7 +284,10 @@ maybe_print_line (line)
     }
 
   if (print.no_line_dirs)
-    return;
+    {
+      print.lineno = line;
+      return;
+    }
 
   /* print.lineno is zero if this is the first token of the file.  We
      handle this specially, so that a first line of "# 1 "foo.c" in