ref: 0b8f18a02b36d3cb05b703f9dac7953924942a49
parent: 66915c0956d505bf60140ff48021c0725edfa02c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Aug 13 05:53:55 EDT 2015
Emit name of variables in declarations This name is needed for global variables and in the case of locals can be useful for debugging
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -266,6 +266,8 @@
emitvar(sym);
putchar('\t');
emitletter(sym->type);
+ if (sym->name)
+ printf("\t%s", sym->name);
if (op != OFUN)
putchar('\n');
sym->flags |= ISEMITTED;