shithub: scc

Download patch

ref: 6a95017edb145c2cccb94579a0fea96f7adc1d7e
parent: e951f65cd7c66260d1b3c0c4b7ea89cd01dd9b5e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Dec 22 11:02:33 EST 2016

[cc1] Fix unlinkhash()

This function must unlink using the hash pointer and no the next
pointer, because they are very diffrent things.

--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -67,7 +67,7 @@
 	if ((sym->flags & SDECLARED) == 0)
 		return;
 	h = hash(sym->name, sym->ns);
-	*h = sym->next;
+	*h = sym->hash;
 }
 
 void