aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/5l
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-22 16:29:14 -0500
committerRuss Cox <rsc@golang.org>2012-02-22 16:29:14 -0500
commita5bc16d619657a243ea55c2ebefc9a2f672ab2de (patch)
treecf205a4ce8ce3e0f2c84e8ccfef897932ad08103 /src/cmd/5l
parent37decab5a31f6418ae52d4548d06b2022d99c72f (diff)
downloadgo-a5bc16d619657a243ea55c2ebefc9a2f672ab2de.tar.xz
5c, 5g, 5l: fix arm bug
Using reg as the flag word was unfortunate, since the default value is not 0 but NREG (==16), which happens to be the bit NOPTR now. Clear it. If I say this will fix the build, it won't. R=golang-dev, r CC=golang-dev https://golang.org/cl/5690072
Diffstat (limited to 'src/cmd/5l')
-rw-r--r--src/cmd/5l/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/5l/list.c b/src/cmd/5l/list.c
index fa838215b1..7b623d78a5 100644
--- a/src/cmd/5l/list.c
+++ b/src/cmd/5l/list.c
@@ -65,7 +65,7 @@ Pconv(Fmt *fp)
switch(a) {
default:
fmtprint(fp, "(%d)", p->line);
- if(p->reg == NREG)
+ if(p->reg == NREG && p->as != AGLOBL)
fmtprint(fp, " %A%C %D,%D",
a, p->scond, &p->from, &p->to);
else