summaryrefslogtreecommitdiff
path: root/src/cmd/8c/txt.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-01-27 14:12:35 -0800
committerKen Thompson <ken@golang.org>2009-01-27 14:12:35 -0800
commit12dd75e325dc3dd8c35fa1f59253608e7b405f61 (patch)
treef0c1eec4f6d9866ff46fa26d8c6c3a4878915261 /src/cmd/8c/txt.c
parentc3b493c4f75cbffe5ae41e77fa63888dcb473020 (diff)
downloadgo-12dd75e325dc3dd8c35fa1f59253608e7b405f61.tar.gz
pragma textflag
fixes latent bugs in go and defer R=r OCL=23613 CL=23613
Diffstat (limited to 'src/cmd/8c/txt.c')
-rw-r--r--src/cmd/8c/txt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/8c/txt.c b/src/cmd/8c/txt.c
index 5aab9dba9..4e95f3c7a 100644
--- a/src/cmd/8c/txt.c
+++ b/src/cmd/8c/txt.c
@@ -1363,7 +1363,9 @@ gpseudo(int a, Sym *s, Node *n)
p->as = a;
p->from.type = D_EXTERN;
p->from.sym = s;
- p->from.scale = (profileflg ? 0 : NOPROF);
+ p->from.scale = textflag;
+ textflag = 0;
+
if(s->class == CSTATIC)
p->from.type = D_STATIC;
naddr(n, &p->to);