aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 6d4c7a0..f1b6b24 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -949,10 +949,10 @@ cpp_start_read (pfile, fname)
p = q;
}
- /* This was zero when the initial buffer was stacked; so we must
- make up for a non-existent new line, as well as the intervening
- macro definitions, by setting it to 1. */
- pfile->line = 1;
+ /* Hopefully a short-term kludge. We stacked the main file at line
+ zero. The intervening macro definitions have messed up line
+ numbering, so we need to restore it. */
+ pfile->lexer_pos.output_line = pfile->line = 0;
/* The -imacros files can be scanned now, but the -include files
have to be pushed onto the buffer stack and processed later,