[hackers] [scc] [cc2-qbe] Add AUTO symbols to symname() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 15 Apr 2016 12:29:15 +0200 (CEST)

commit 738b9039885749efe856cc34db6b80d44e927a65
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Apr 15 10:23:42 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Apr 15 10:23:42 2016 +0200

    [cc2-qbe] Add AUTO symbols to symname()
    
    Auto variables were not getting a correct name in symname().

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 50b0849..06dbfd9 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -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();
                 }
         }
 
Received on Fri Apr 15 2016 - 12:29:15 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 15 2016 - 12:36:28 CEST