From: Neil Booth Date: Sat, 26 Apr 2003 21:03:51 +0000 (+0000) Subject: Revert cpplex.c change X-Git-Tag: releases/gcc-3.4.0~7014 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ff7868d82bcd34791410be3c3566b21f04ac31a;p=thirdparty%2Fgcc.git Revert cpplex.c change From-SVN: r66118 --- diff --git a/gcc/cpplex.c b/gcc/cpplex.c index b4893bd5fccf..4f0767e42c8e 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)