[hackers] [scc] [cc2-qbe] Add all the symbol storage classes in addr2txt() || Roberto E. Vargas Caballero
commit 944cd3a1e6b81b2dceb5eca779fb07a2e82d68d3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue May 31 08:38:23 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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();
Received on Tue May 31 2016 - 08:42:00 CEST
This archive was generated by hypermail 2.3.0
: Tue May 31 2016 - 08:48:15 CEST