shithub: riscv

Download patch

ref: f360729664eb91e8ee692bdabbf3b5b655cd8959
parent: 84076e37167a9329d70104a39ea398a9f676009d
parent: 3bb5168c6f21b38e5b4415419f986b4fa466cbd9
author: cinap_lenrek <[email protected]>
date: Tue Jun 18 09:29:29 EDT 2019

merge

--- a/sys/src/cmd/6c/sgen.c
+++ b/sys/src/cmd/6c/sgen.c
@@ -162,6 +162,8 @@
 			l->scale = idx.scale;
 			l->addable = 9;
 			l->complex = l->right->complex;
+			if(l->complex == 0)
+				l->complex++;
 			l->type = l->left->type;
 			n->op = OADDR;
 			n->left = l;
--- a/sys/src/cmd/8c/sgen.c
+++ b/sys/src/cmd/8c/sgen.c
@@ -169,6 +169,8 @@
 			l->scale = idx.scale;
 			l->addable = 9;
 			l->complex = l->right->complex;
+			if(l->complex == 0)
+				l->complex++;
 			l->type = l->left->type;
 			n->op = OADDR;
 			n->left = l;