From 9ff7868d82bcd34791410be3c3566b21f04ac31a Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 26 Apr 2003 21:03:51 +0000 Subject: [PATCH] Revert cpplex.c change From-SVN: r66118 --- gcc/cpplex.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/cpplex.c b/gcc/cpplex.c index b4893bd5fcc..4f0767e42c8 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) -- 2.30.2