commit 738b9039885749efe856cc34db6b80d44e927a65
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Apr 15 10:23:42 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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();
                }
        }
 

Reply via email to