gcc/libcpp
Nathan Sidwell 729a01f72c [PATCH] Macro definition parameter parsing
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00977.html
	libcpp/
	* internal.h (_cpp_save_parameter): Take parmno, not macro.
	(_cpp_unsave_parameters): Declare.
	* macro.c (_cpp_save_parameter): Take parm number, not macro.
	Return true on success.
	(_cpp_unsave_parameters): New.
	(parse_params): Take parm_no and variadic pointers, not macro.
	Reimplement parsing logic.
	(create_iso_definition): Adjust parse_params changes.  Call
	_cpp_unsave_parameters here.
	(_cpp_create_definition): Don't unsave params here.
	* traditional.c (scan_parameters): Take n_param pointer, adjust.
	(_cpp_create_trad_definition): Ajust scan_parameters change.  Call
	_cpp_unsave_parameters.
	gcc/testsuite/
	* gcc.dg/cpp/macsyntx.c: Adjust expected errors.
	* gcc.dg/cpp/macsyntx2.c: likewise.

From-SVN: r263600
2018-08-16 19:18:42 +00:00
..
include [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
po Regenerate .pot files. 2018-07-25 15:31:18 +01:00
aclocal.m4
ChangeLog [PATCH] Macro definition parameter parsing 2018-08-16 19:18:42 +00:00
ChangeLog.jit
charset.c
config.in
configure
configure.ac
directives-only.c
directives.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
errors.c
expr.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
files.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
identifiers.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
init.c
internal.h [PATCH] Macro definition parameter parsing 2018-08-16 19:18:42 +00:00
lex.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
line-map.c diagnostics: add labeling of source ranges 2018-08-15 18:09:35 +00:00
location-example.txt
macro.c [PATCH] Macro definition parameter parsing 2018-08-16 19:18:42 +00:00
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h * system.h: #include <new> earlier. 2018-05-23 13:13:30 -04:00
traditional.c [PATCH] Macro definition parameter parsing 2018-08-16 19:18:42 +00:00
ucnid.h
ucnid.tab