diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2014-07-23 17:36:10 +0400 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-07-23 17:36:10 +0400 |
commit | 39c562776317a006e2928dbdc9df5d862b139acd (patch) | |
tree | 54352236459b29a82eae6074f52ea8d34b07a5e5 /src/cmd/6g | |
parent | 3dc4fc72fd71f8131e9f51c9635fd9ddb1b6cb61 (diff) | |
download | go-39c562776317a006e2928dbdc9df5d862b139acd.tar.gz |
cmd/gc: mark auxiliary symbols as containing no pointers
They do not, but pretend that they do.
The immediate need is that it breaks the new GC because
these are weird symbols as if with pointers but not necessary
pointer aligned.
LGTM=rsc
R=golang-codereviews, dave, josharian, khr, rsc
CC=golang-codereviews, iant, khr, rlh
https://codereview.appspot.com/116060043
Diffstat (limited to 'src/cmd/6g')
-rw-r--r-- | src/cmd/6g/gsubr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd/6g/gsubr.c b/src/cmd/6g/gsubr.c index d1b1d9bee..f3464b7e1 100644 --- a/src/cmd/6g/gsubr.c +++ b/src/cmd/6g/gsubr.c @@ -225,7 +225,7 @@ gargsize(vlong size) } void -ggloblsym(Sym *s, int32 width, int dupok, int rodata) +ggloblsym(Sym *s, int32 width, int8 flags) { Prog *p; @@ -236,10 +236,7 @@ ggloblsym(Sym *s, int32 width, int dupok, int rodata) p->to.type = D_CONST; p->to.index = D_NONE; p->to.offset = width; - if(dupok) - p->from.scale |= DUPOK; - if(rodata) - p->from.scale |= RODATA; + p->from.scale = flags; } int |