scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit bba16a09cbc5fcecbaddb7c336035d44f9690869
parent 6c9e5fb095694abd416c9e19e001a672eb593b05
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 20 Jan 2017 10:02:04 +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.

Diffstat:
Mcc2/arch/qbe/cgen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -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; }