diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-08-21 06:20:18 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-08-21 06:20:18 +0000 |
commit | d7bc7a9850ac55871f1108c491585118e10afd04 (patch) | |
tree | d3294a0e95ec060c7d36c19a66723166c94ce0f9 /gcc/cpplib.c | |
parent | bb1a503c19ca810ff94db1674cbe607f903d1ffc (diff) | |
download | gcc-d7bc7a9850ac55871f1108c491585118e10afd04.zip gcc-d7bc7a9850ac55871f1108c491585118e10afd04.tar.gz gcc-d7bc7a9850ac55871f1108c491585118e10afd04.tar.bz2 |
cpphash.h (_cpp_push_next_buffer): New.
* cpphash.h (_cpp_push_next_buffer): New.
* cppinit.c (do_includes): Remove.
(push_include, free_chain, _cpp_push_next_buffer): New.
(cpp_start_read): Use them to rework command line option handling.
(cpp_handle_option): Combine handling of -include and -imacros.
* cpplex.c (_cpp_lex_token): Push a new -include buffer if
appropriate. Always insert missing \n at EOF.
* cpplib.c (start_directive): Get the directive position right.
* cppmain.c (cb_file_change): Always print the first line, unless
preprocessed.
From-SVN: r45070
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index eab9f31..e02ab69 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -226,6 +226,7 @@ start_directive (pfile) /* Some handlers need the position of the # for diagnostics. */ pfile->directive_pos = pfile->lexer_pos; + pfile->directive_pos.line = pfile->line; pfile->directive_line = pfile->line; /* Don't save directive tokens for external clients. */ |