gcc/libcpp
Ian Lance Taylor cbc43ae091 re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives)
libcpp/
	PR preprocessor/13726
	* directives.c (check_eol_return_comments): New static function.
	(parse_include): Add buf parameter.  Change all callers.
	(do_include_common): If not discard comments, turn on
	save_comments.  Pass collected comments to include callback.
	* include/cpplib.h (struct cpp_callbacks): Add new parameter to
	include callback: cpp_token list.
gcc/
	PR preprocessor/13726
	* c-ppoutput.c (cb_include): Add comments parameter, and print out
	any comments passed in.
gcc/testsuite/
	PR preprocessor/13726
	* gcc.dg/cpp/cmdlne-dI-C.c: New test.
	* gcc.dg/cpp/cmdlne-dI-C.h: New file.

From-SVN: r104951
2005-10-04 18:06:19 +00:00
..
include re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives) 2005-10-04 18:06:19 +00:00
po
.cvsignore
aclocal.m4
ChangeLog re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives) 2005-10-04 18:06:19 +00:00
charset.c
config.in
configure
configure.ac
directives.c re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives) 2005-10-04 18:06:19 +00:00
errors.c
expr.c
files.c
identifiers.c
init.c
internal.h
lex.c
line-map.c
macro.c
makedepend.c
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h
traditional.c
ucnid.h
ucnid.tab