diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2000-12-18 19:31:54 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-12-18 19:31:54 +0000 |
commit | 3cab41338d28165c609ef18b622b0decb5850d9d (patch) | |
tree | 9aed63aebabbb5670ee31788d2491bbef6100475 /gcc/cppmain.c | |
parent | 9b4ea1a8a323db55feda7c6caf0a4dacd409be0e (diff) | |
download | gcc-3cab41338d28165c609ef18b622b0decb5850d9d.zip gcc-3cab41338d28165c609ef18b622b0decb5850d9d.tar.gz gcc-3cab41338d28165c609ef18b622b0decb5850d9d.tar.bz2 |
* cppmain.c: Update print.lineno with -P.
From-SVN: r38359
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r-- | gcc/cppmain.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |