gcc/libcpp
Nathan Sidwell 5abe05b433 preprocessor: Fix non-fn fn-like macro at EOF [PR97471]
We inject EOF tokens between macro argument lists, but had
confused/stale logic in the non-fn invocation.  Renamed the magic
'eof' token, as it's now only used for macro argument termination.
Always rewind the non-OPEN_PAREN token.

	libcpp/
	* internal.h (struct cpp_reader): Rename 'eof' field to 'endarg'.
	* init.c (cpp_create_reader): Adjust.
	* macro.c (collect_args): Use endarg for separator.  Always rewind
	in the not-fn case.
	gcc/testsuite/
	* c-c++-common/cpp/pr97471.c: New.
2020-10-19 08:00:41 -07:00
..
include c-family: Macro support in -Wmisleading-indentation [PR80076] 2020-09-17 14:27:22 -04:00
po Daily bump. 2020-07-21 00:16:28 +00:00
aclocal.m4
ChangeLog Daily bump. 2020-10-09 00:16:27 +00:00
ChangeLog.jit
charset.c diagnostics: Support conversion of tabs to spaces [PR49973] [PR86904] 2020-07-14 12:05:56 -04:00
config.in
configure Require CET support only for the final GCC build 2020-07-30 05:36:24 -07:00
configure.ac libcpp, libdecnumber: configure and substitute AR 2020-05-23 21:59:02 +00:00
directives.c preprocessor: Better line info for <builtin> & <command-line> 2020-07-07 11:40:04 -07:00
errors.c
expr.c
files.c libcpp: Directly peek for initial line marker 2020-10-08 12:16:21 -07:00
generated_cpp_wcwidth.h
identifiers.c
init.c preprocessor: Fix non-fn fn-like macro at EOF [PR97471] 2020-10-19 08:00:41 -07:00
internal.h preprocessor: Fix non-fn fn-like macro at EOF [PR97471] 2020-10-19 08:00:41 -07:00
lex.c powerpc, libcpp: Fix gcc build with clang on power8 [PR97163] 2020-09-26 10:07:41 +02:00
line-map.c c-family: Macro support in -Wmisleading-indentation [PR80076] 2020-09-17 14:27:22 -04:00
location-example.txt
macro.c preprocessor: Fix non-fn fn-like macro at EOF [PR97471] 2020-10-19 08:00:41 -07:00
Makefile.in libcpp, libdecnumber: configure and substitute AR 2020-05-23 21:59:02 +00:00
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h preprocessor: Random cleanups 2020-05-19 13:23:47 -07:00
traditional.c preprocessor: Teach traditional about has_include [PR95889] 2020-07-29 07:47:21 -07:00
ucnid.h
ucnid.tab