From: Neil Booth Date: Mon, 18 Dec 2000 19:31:54 +0000 (+0000) Subject: * cppmain.c: Update print.lineno with -P. X-Git-Tag: prereleases/libstdc++-2.92~2150 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cab41338d28165c609ef18b622b0decb5850d9d;p=thirdparty%2Fgcc.git * cppmain.c: Update print.lineno with -P. From-SVN: r38359 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76be2af58508..37df328f4937 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-12-18 Neil Booth + + * cppmain.c: Update print.lineno with -P. + 2000-12-18 Neil Booth * c-lex.c: s/change_file/file_change. diff --git a/gcc/cppmain.c b/gcc/cppmain.c index ed6858e3c1f3..ace260ca8cae 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -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