Commit fa3d86ca authored by Russ Cox's avatar Russ Cox

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
parent 2cc9d339
No related merge requests found
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment