preprocessor: Fix ICE with EOF in macro args [pr95182]

This was another latent case of us losing an EOF token, but succeeding
anyway.  Since my patch to make us pay more attention to EOFs it came
to light.  We also need to keep the EOF if we fall off the end of the
main file.  Forced includes look like regular nested includes at this
point.

	PR preprocessor/95182
	libcpp/
	* macro.c (collect_args): Preserve EOFif we fell out of the main
	file.
	(cpp_get_token_1): Reformat a couple of short lines.
This commit is contained in:
Nathan Sidwell
2020-05-19 06:11:22 -07:00
parent 92ea8e1bcc
commit a641d6d3e6
6 changed files with 43 additions and 9 deletions
+7
View File
@@ -1,3 +1,10 @@
2020-05-18 Nathan Sidwell <nathan@acm.org>
PR preprocessor/95182
* macro.c (collect_args): Preserve EOFif we fell out of the main
file.
(cpp_get_token_1): Reformat a couple of short lines.
2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.