summaryrefslogtreecommitdiff
path: root/src/cmd/8c/txt.c
diff options
context:
space:
mode:
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);