1
0
mirror of https://github.com/golang/go synced 2024-10-02 16:28:34 -06:00

libmach: correct handling of .5 files with D_REGREG addresses

undo workaround in gc

Fixes #943.

R=kaib
CC=golang-dev
https://golang.org/cl/1889041
This commit is contained in:
Russ Cox 2010-07-22 09:00:34 -07:00
parent 2cc9d339e6
commit fa3d86ca39
2 changed files with 4 additions and 3 deletions

View File

@ -115,9 +115,7 @@ walkrange(Node *n)
v2 = n->list->next->n;
hv2 = N;
// 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') {
if(v2 == N && t->etype == TARRAY) {
// will have just one reference to argument.
// no need to make a potentially expensive copy.
ha = a;

View File

@ -123,6 +123,9 @@ addr(Biobuf *bp)
case D_PSR:
case D_FPCR:
break;
case D_REGREG:
Bgetc(bp);
break;
case D_CONST2:
Bgetc(bp);
Bgetc(bp);