scc

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

commit 9853c04d3b591c01d20a54351042c17c97e85f4a
parent f3dff61256bc253a0b9ac778f2fff2b342ea7a85
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 20 Jan 2017 08:18:16 +0100

[cc2-qbe] Add SLOCAL case to symname()

This case was lost in the switch and it was the reason why
local static variables caused an abort().

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

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -186,6 +186,7 @@ symname(Symbol *sym) case SGLOB: sprintf(buff, "%c%s", c, sym->name); return buff; + case SLOCAL: case SPRIV: case SAUTO: sprintf(buff, "%c%s.%u", c, sym->name, sym->id);