diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cppmain.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76be2af..37df328 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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. * cpplib.h: Similarly. * cppmain.c: Similarly. diff --git a/gcc/cppmain.c b/gcc/cppmain.c index ed6858e..ace260c 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 |