Skip to content
Snippets Groups Projects
Forked from redox-os / gcc
Loading
  • ian's avatar
    f789fe3e
    libcpp/ · f789fe3e
    ian authored
    	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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104951 138bc75d-0d04-0410-961f-82ee72b054a4
    f789fe3e
    History
    libcpp/
    ian authored
    	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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104951 138bc75d-0d04-0410-961f-82ee72b054a4