shithub: scc

Download patch

ref: e5501c13c9f2706fe5f5dafc23b0706a3cd1fc14
parent: 1b0107f059a35efdbef66890593f2913c6b460ee
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Mar 20 06:31:54 EDT 2015

Remove non used addr field in symbol of cc2

These field is not used, and maybe it will not be used
because it was not a good idea.

--- a/cc2/cc2.h
+++ b/cc2/cc2.h
@@ -66,9 +66,6 @@
 			short off;
 		} v;
 		struct {
-			short addr;
-		} l;
-		struct {
 			short locals;
 			short params;
 			Node **body;
--- a/cc2/parser.c
+++ b/cc2/parser.c
@@ -452,7 +452,6 @@
 	if (!curfun)
 		error(ESYNTAX);
 	sym = local(token);
-	sym->u.l.addr = listp - listexp;
 }
 
 static Symbol *