1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:54:42 -07:00

arm: fix build by disabling list copying optimization for 5g.

R=rsc
CC=golang-dev
https://golang.org/cl/1697053
This commit is contained in:
Kai Backman 2010-07-21 14:14:21 +03:00
parent 61fb9ccc8d
commit 47b6400556
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -52,9 +52,9 @@ FAIL
Hello World!
=========== ken/cplx0.go
(+1.066132e-308+1.313301e-308i)
(+1.066132e-308+1.313303e-308i)
(+1.066132e-308+1.066132e-308i)
(+1.066132e-308+1.313301e-308i)
(+1.066132e-308+1.313303e-308i)
(+1.066132e-308+1.066132e-308i)
=========== ken/cplx3.go