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
ChangeLog [PATCH] Macro definition parameter parsing 2018-08-16 19:18:42 +00:00
ChangeLog.jit
Makefile.in Update copyright years. 2018-01-03 11:03:58 +01:00
aclocal.m4
charset.c Update copyright years. 2018-01-03 11:03:58 +01:00
config.in
configure
configure.ac
directives-only.c Update copyright years. 2018-01-03 11:03:58 +01:00
directives.c [PATCH] CPP Macro predicates 2018-08-16 13:51:38 +00:00
errors.c Update copyright years. 2018-01-03 11:03:58 +01:00
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 Update copyright years. 2018-01-03 11:03:58 +01:00
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
makeucnid.c Update copyright years. 2018-01-03 11:03:58 +01:00
mkdeps.c Update copyright years. 2018-01-03 11:03:58 +01:00
pch.c Update copyright years. 2018-01-03 11:03:58 +01:00
symtab.c Update copyright years. 2018-01-03 11:03:58 +01:00
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 Update copyright years. 2018-01-03 11:03:58 +01:00
ucnid.tab Update copyright years. 2018-01-03 11:03:58 +01:00