gcc/libcpp
Jason Merrill ac6e77aacf libcpp: __VA_OPT__ tweak
> We want to remove the latter <placemarker> but not the former one, and
> the patch adds the vaopt_padding_tokens counter for it to control
> how many placemarkers are removed on vaopt_state::END.
> As can be seen in #c1 and #c2 of the PR, I've tried various approaches,
> but neither worked out for all the cases except the posted one.

I notice that the second placemarker you mention is avoid_paste, which seems
relevant.  This seems to also work, at least it doesn't seem to break any of
the va_opt tests.

2021-09-01  Jason Merrill  <jason@redhat.com>

	* macro.c (replace_args): When __VA_OPT__ is on the LHS of ##,
	remove trailing avoid_paste tokens.
2021-09-01 21:33:30 +02:00
..
include Disable gcc_rich_location copying and assignment. 2021-08-31 11:15:21 -06:00
po Daily bump. 2021-08-17 00:16:32 +00:00
aclocal.m4
ChangeLog Daily bump. 2021-09-01 00:16:58 +00:00
ChangeLog.jit
charset.c diagnostics: Support for -finput-charset [PR93067] 2021-08-25 11:15:28 -04:00
config.in
configure
configure.ac
directives.c
errors.c
expr.c
files.c diagnostics: Support for -finput-charset [PR93067] 2021-08-25 11:15:28 -04:00
generated_cpp_wcwidth.h
identifiers.c
init.c
internal.h
lex.c
line-map.c
location-example.txt
macro.c libcpp: __VA_OPT__ tweak 2021-09-01 21:33:30 +02:00
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h
traditional.c
ucnid.h libcpp: Regenerate ucnid.h using Unicode 13.0.0 files [PR100977] 2021-08-05 17:35:20 +02:00
ucnid.tab