summaryrefslogtreecommitdiff
path: root/sys/src/cmd/8c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-10-06 06:20:01 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-10-06 06:20:01 +0200
commit2d59b15c39dc0412e2722141cb5d48bf72b5665e (patch)
tree943cfe2d4d976101544339a07096b6666e3d30b7 /sys/src/cmd/8c
parent99ddc5b0971c3ce0baddd667ea4c34c635c8e5ab (diff)
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()
Diffstat (limited to 'sys/src/cmd/8c')
-rw-r--r--sys/src/cmd/8c/cgen.c1
1 files changed, 1 insertions, 0 deletions
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);