diff options
author | Kai Backman <kaib@golang.org> | 2010-07-21 14:14:21 +0300 |
---|---|---|
committer | Kai Backman <kaib@golang.org> | 2010-07-21 14:14:21 +0300 |
commit | d9392e41c564db3866237e35e7a674853913bf0c (patch) | |
tree | 44eebbefa896884bf59084b8c4e99f45c439c77b /src | |
parent | c35093f9168397a18b241333eecf6f5c4c4be31f (diff) | |
download | go-d9392e41c564db3866237e35e7a674853913bf0c.tar.gz |
arm: fix build by disabling list copying optimization for 5g.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1697053
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/gc/range.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gc/range.c b/src/cmd/gc/range.c index dca3a5454..b57639b23 100644 --- a/src/cmd/gc/range.c +++ b/src/cmd/gc/range.c @@ -115,7 +115,9 @@ walkrange(Node *n) v2 = n->list->next->n; hv2 = N; - if(v2 == N && t->etype == TARRAY) { + // TODO(kaib): re-enable this optimization on arm once we are on par with 6g/8g + // see http://code.google.com/p/go/issues/detail?id=943 + if(v2 == N && t->etype == TARRAY && thechar != '5') { // will have just one reference to argument. // no need to make a potentially expensive copy. ha = a; |