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 be.po, [...]: Update. 2005-09-04 13:28:33 +01:00
.cvsignore configure.ac: Don't invoke ACX_HEADER_STDBOOL. 2004-06-12 05:53:54 +00:00
ChangeLog re PR preprocessor/13726 (cpp -C -dI loses comments on same line as #include directives) 2005-10-04 18:06:19 +00:00
Makefile.in all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
aclocal.m4 top level: 2005-06-13 08:26:05 +00:00
charset.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
config.in configure.ac: Check declarations for asprintf and vasprintf. 2005-05-28 15:52:48 +00:00
configure configure.ac (ACX_PROG_CC_WARNING_OPTS): add -Wmissing-format-attribute. 2005-07-24 03:44:26 +00:00
configure.ac configure.ac (ACX_PROG_CC_WARNING_OPTS): add -Wmissing-format-attribute. 2005-07-24 03:44:26 +00:00
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 all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
expr.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
files.c re PR preprocessor/20348 (File not included when file with same name is included before) 2005-08-30 08:28:21 +02:00
identifiers.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
init.c c.opt (fextended-identifiers): New. 2005-09-20 21:31:37 +01:00
internal.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
lex.c c.opt (fextended-identifiers): New. 2005-09-20 21:31:37 +01:00
line-map.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
macro.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
makedepend.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
makeucnid.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
mkdeps.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
pch.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
symtab.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
system.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
traditional.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
ucnid.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
ucnid.tab all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00