summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-09 22:21:37 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-09 22:21:37 +0000
commitecedd82dcfc198d99b53f269a1213f8f214115bf (patch)
treee390f035173a9fd06a813df8aaf84b4cafa2f92f /gcc/cpplib.c
parentdca8af3e56a53cdd2c6952d3d86d62b5f615e13e (diff)
downloadgcc-ecedd82dcfc198d99b53f269a1213f8f214115bf.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index fe6816cabde..f61f7e68ead 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);
}
}