[hackers] [scc] [cc2-qbe] Add labels to sigil() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 20 Apr 2016 22:57:26 +0200 (CEST)

commit 06406a58ad2731e634939b4abd2e5d1bf5905245
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
AuthorDate: Wed Apr 20 04:31:40 2016 +0200
Commit: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
CommitDate: Wed Apr 20 04:40:21 2016 +0200

    [cc2-qbe] Add labels to sigil()
    
    Labels were lost in the implementation of this function, and it
    was accepting SREG types, which cannot happen in this target.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index fe9c762..1683d4f 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -54,9 +54,10 @@ sigil(Symbol *sym)
         case SLOCAL:
                 return '$';
         case SAUTO:
- case SREG:
         case STMP:
                 return '%';
+ case SLABEL:
+ return '_AT_';
         default:
                 abort();
         }
Received on Wed Apr 20 2016 - 22:57:26 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 20 2016 - 23:00:28 CEST