scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 944cd3a1e6b81b2dceb5eca779fb07a2e82d68d3
parent bb043d47fd80b8aafdacb217ce4f48677c587df1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 31 May 2016 08:38:23 +0200

[cc2-qbe] Add all the symbol storage classes in addr2txt()

The symbol storage classes for statit symbols were missing
from addr2txt(), making impossible to use any static
variable.

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

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -351,6 +351,10 @@ addr2txt(Addr *a) case SAUTO: case SLABEL: case STMP: + case SGLOB: + case SEXTRN: + case SPRIV: + case SLOCAL: return symname(a->u.sym); default: abort();