diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-07-09 22:21:37 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-07-09 22:21:37 +0000 |
commit | cd98faa13814ce3712fc1c1be9690180d89810e5 (patch) | |
tree | e390f035173a9fd06a813df8aaf84b4cafa2f92f /gcc/cpplib.c | |
parent | 2ad65b0e91312a9f2fadd4abd9eb9d98b085920c (diff) | |
download | gcc-cd98faa13814ce3712fc1c1be9690180d89810e5.zip gcc-cd98faa13814ce3712fc1c1be9690180d89810e5.tar.gz gcc-cd98faa13814ce3712fc1c1be9690180d89810e5.tar.bz2 |
cpperror.c (cpp_error): Default to directive_line within directives here.
* cpperror.c (cpp_error): Default to directive_line within
directives here.
* cppexp.c (cpp_interpret_integer): Only use traditional
number semantics in directives.
* cpplib.c (prepare_directive_trad): Don't reset pfile->line.
(do_include_common): Similarly.
* cpptrad.c (scan_out_logical_line): Implement accurate
quoting of <> in #include.
* doc/cpp.texi: Update.
From-SVN: r55347
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index fe6816c..f61f7e6 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -303,9 +303,6 @@ prepare_directive_trad (pfile) pfile->out.cur - pfile->out.base); } - /* Report diagnostics on the line of the directive. */ - pfile->line = pfile->directive_line; - /* Stop ISO C from expanding anything. */ pfile->state.prevent_expansion++; } @@ -689,10 +686,6 @@ do_include_common (pfile, type) if (pfile->cb.include) (*pfile->cb.include) (pfile, pfile->directive_line, pfile->directive->name, header); - - /* Revert to the correct line if traditional. */ - if (CPP_OPTION (pfile, traditional)) - pfile->line = pfile->saved_line; _cpp_execute_include (pfile, header, type); } } |