aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r--gcc/cppmain.c5
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