shithub: scc

Download patch

ref: 4ffe395a66f3b0d78ec53295a81536ed7f094a00
parent: 268b5a4e15ec491a5881664a9e26ba714254da1d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Feb 19 14:25:30 EST 2017

[cc1] Remove old code from newsym()

Once upon a time when cpp symbols were stored in the same table than
the blocked symbols and this code was a hack to avoid them to be
removed in any popctx(). This is not needed anymore

--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -187,7 +187,7 @@
 	sym->id = 0;
 	sym->hide = 0;
 	sym->ns = ns;
-	sym->ctx = (ns == NS_CPP) ? UCHAR_MAX : curctx;
+	sym->ctx = curctx;
 	sym->token = IDEN;
 	sym->flags = 0;
 	sym->u.s = NULL;