summaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-26 21:03:51 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-26 21:03:51 +0000
commit2908f8194e5f8940497d7d61255e985a20f4da70 (patch)
tree1b3eda4e42c4c6599d5876c74266435f2e1e2252 /gcc/cpplex.c
parentaea212582d977cfdcf41569ea94500086d06af4c (diff)
downloadgcc-2908f8194e5f8940497d7d61255e985a20f4da70.tar.gz
Revert cpplex.c change
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66118 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r--gcc/cpplex.c6
1 files changed, 6 insertions, 0 deletions
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)