r260267 - in /branches/c++-modules: ChangeLog.m...

nathan@gcc.gnu.org nathan@gcc.gnu.org
Tue May 15 17:15:00 GMT 2018


Author: nathan
Date: Tue May 15 17:15:01 2018
New Revision: 260267

URL: https://gcc.gnu.org/viewcvs?rev=260267&root=gcc&view=rev
Log:
	libcpp/
	* include/cpplib.h (cpp_in_macro_expansion_p): Declare.
	* macro.c (in_macro_expansion_p): Rename to ...
	(cpp_in_macro_expansion_p): ... here.  Externalize.
	(cpp_get_token_1): Adjust.
	* internal.h: Update docs.
	gcc/
	* langhooks.h (struct lang_hooks): Adjust preprocess_preamble.
	gcc/c-family/
	* c-ppoutput.c (scan_translation_unit): Pass token location to
	preamble hook.
	gcc/cp/
	* cp-lang.c (atom_preamble_fsm): Pass token loc through.
	* cp-tree.h (atom_preamble_prefix_next): Take token loc.
	* lex.c (atom_preamble_prefix_next): Take token loc.  Warn if
	ending inside macro.
	* parser.c (cp_parser_module_preamble): Adjust.
	gcc/testsuite/
	* g++.dg/modules/cpp-preamble-5.C: New.

Added:
    branches/c++-modules/gcc/testsuite/g++.dg/modules/cpp-preamble-5.C
Modified:
    branches/c++-modules/ChangeLog.modules
    branches/c++-modules/gcc/c-family/c-ppoutput.c
    branches/c++-modules/gcc/cp/cp-lang.c
    branches/c++-modules/gcc/cp/cp-tree.h
    branches/c++-modules/gcc/cp/lex.c
    branches/c++-modules/gcc/cp/parser.c
    branches/c++-modules/gcc/langhooks.h
    branches/c++-modules/libcpp/include/cpplib.h
    branches/c++-modules/libcpp/internal.h
    branches/c++-modules/libcpp/macro.c



More information about the Gcc-cvs mailing list