[hackers] [scc] [cc2-qbe] Do not try to load functions || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 20 Jan 2017 10:03:24 +0100 (CET)

commit bba16a09cbc5fcecbaddb7c336035d44f9690869
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 20 10:02:04 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 20 10:02:04 2017 +0100

    [cc2-qbe] Do not try to load functions
    
    It is impossible to load a function in a temporary in the
    same way that it is impossible to load an aggregate. The
    only thing we can do is to passthrough the node.

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 6ce17c1..7c48a40 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -118,7 +118,7 @@ load(Type *tp, Node *np, Node *new)
         int op;
         int flags = tp->flags;
 
- if (flags & AGGRF) {
+ if (flags & (AGGRF|FUNF)) {
                 *new = *np;
                 return new;
         }
Received on Fri Jan 20 2017 - 10:03:24 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 20 2017 - 10:12:24 CET