scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 738b9039885749efe856cc34db6b80d44e927a65
parent 505d9bd056b9f1a67c58cb0939364339d0812d67
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 15 Apr 2016 10:23:42 +0200

[cc2-qbe] Add AUTO symbols to symname()

Auto variables were not getting a correct name in symname().

Diffstat:
Mcc2/arch/qbe/code.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -41,8 +41,11 @@ symname(Symbol *sym) case EXTRN: case GLOB: case PRIVAT: + case AUTO: sprintf(name, "%c%s", c, sym->name); return name; + default: + abort(); } }