From 2d59b15c39dc0412e2722141cb5d48bf72b5665e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 6 Oct 2015 06:20:01 +0200 Subject: 5c/6c/8c/vc: import various changes from charles forsyth - cover more cases that have no side effects - ensure function has complex FNX - pull operators out of OFUNC level - rewrite OSTRUCT lhs to avoid all side-effects, use regalloc() instead of regret() --- sys/src/cmd/8c/cgen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/src/cmd/8c') diff --git a/sys/src/cmd/8c/cgen.c b/sys/src/cmd/8c/cgen.c index 9436ac698..35559bc15 100644 --- a/sys/src/cmd/8c/cgen.c +++ b/sys/src/cmd/8c/cgen.c @@ -1606,6 +1606,7 @@ sugen(Node *n, Node *nn, long w) } else nn = nn->left; n = new(OFUNC, n->left, new(OLIST, nn, n->right)); + n->complex = FNX; n->type = types[TVOID]; n->left->type = types[TVOID]; cgen(n, Z); -- cgit v1.2.3