summaryrefslogtreecommitdiff
path: root/src/cmd/gc/range.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-07-22 09:00:34 -0700
committerRuss Cox <rsc@golang.org>2010-07-22 09:00:34 -0700
commit7fa20dd677461ecada8b1651b6fa2facf7a040a4 (patch)
treec5f63f7c2853ce4411ecc336fc9b227c2260e62f /src/cmd/gc/range.c
parentd7bbc2ede033c38f45ec7910c8982b5e2cd93e9d (diff)
downloadgo-7fa20dd677461ecada8b1651b6fa2facf7a040a4.tar.gz
libmach: correct handling of .5 files with D_REGREG addresses
undo workaround in gc Fixes issue 943. R=kaib CC=golang-dev http://codereview.appspot.com/1889041
Diffstat (limited to 'src/cmd/gc/range.c')
-rw-r--r--src/cmd/gc/range.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/gc/range.c b/src/cmd/gc/range.c
index b57639b23..dca3a5454 100644
--- a/src/cmd/gc/range.c
+++ b/src/cmd/gc/range.c
@@ -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;