Revert cpplex.c change
authorNeil Booth <neil@gcc.gnu.org>
Sat, 26 Apr 2003 21:03:51 +0000 (21:03 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 26 Apr 2003 21:03:51 +0000 (21:03 +0000)
From-SVN: r66118

gcc/cpplex.c

index b4893bd5fccfe935bc8c90aceb5ba41afc0f0196..4f0767e42c8eaa916340d2433ebb999fdba2018d 100644 (file)
@@ -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)