shithub: scc

Download patch

ref: 44d1db65c7c38b6be3b0fa114c8f51ded3468983
parent: 90f5f7af21e783b19821e3ecd27d2175ca50fdd7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Jan 16 12:02:37 EST 2017

[cc1] Fix commit 04b94d8

The condition to have on EOF is to have an input which
reads of a file.

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -653,7 +653,7 @@
 		 * we don't have more inputs, or when the next
 		 * next input is from a file
 		 */
-		if (!input || !input->next || !input->next->fp)
+		if (!input || !input->next || input->next->fp)
 			return;
 	}
 	if (!moreinput())