OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea2125
)
Revert cpplex.c change
author
neil
<neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Apr 2003 21:03:51 +0000
(21:03 +0000)
committer
neil
<neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Apr 2003 21:03:51 +0000
(21:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66118
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cpplex.c
patch
|
blob
|
history
diff --git
a/gcc/cpplex.c
b/gcc/cpplex.c
index
b4893bd
..
4f0767e
100644
(file)
--- 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)