diff options
author | Neil Booth <neil@gcc.gnu.org> | 2003-04-26 21:03:51 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-04-26 21:03:51 +0000 |
commit | 9ff7868d82bcd34791410be3c3566b21f04ac31a (patch) | |
tree | 1b3eda4e42c4c6599d5876c74266435f2e1e2252 /gcc/cpplex.c | |
parent | b70db50a21906fd47290874e8a4aa7ebc04a12d7 (diff) | |
download | gcc-9ff7868d82bcd34791410be3c3566b21f04ac31a.zip gcc-9ff7868d82bcd34791410be3c3566b21f04ac31a.tar.gz gcc-9ff7868d82bcd34791410be3c3566b21f04ac31a.tar.bz2 |
Revert cpplex.c change
From-SVN: r66118
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index b4893bd..4f0767e 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -776,6 +776,12 @@ _cpp_lex_direct (pfile) if (!_cpp_get_fresh_line (pfile)) { result->type = CPP_EOF; + if (!pfile->state.in_directive) + { + /* Tell the compiler the line number of the EOF token. */ + result->line = pfile->line; + result->flags = BOL; + } return result; } if (!pfile->keep_tokens) |