shithub: scc

Download patch

ref: 4bdc0861ffc9d96e34e0f5a84cb05deca769cfaf
parent: f9886fa0db4202c8b65b64356e757cfdda49a535
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Dec 13 12:53:15 EST 2016

[cc1] Fix initialization order

keywords() reset counterid, and icpp() was defining new types
which had an id that after reseting counterid didn't have
a good value.

--- a/cc1/main.c
+++ b/cc1/main.c
@@ -58,9 +58,8 @@
 	int i;
 
 	atexit(clean);
-	itypes();
-	icpp();
 	ilex();
+	icpp();
 
 	/* if run as cpp, only run the preprocessor */
 	name = (cp = strrchr(*argv, '/')) ? cp + 1 : *argv;