commit 944cd3a1e6b81b2dceb5eca779fb07a2e82d68d3
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue May 31 08:38:23 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue May 31 08:41:17 2016 +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.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index fcfa568..c8fee70 100644
--- 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();

Reply via email to