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/8g | |
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/8g')
-rw-r--r-- | src/cmd/8g/gsubr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd/8g/gsubr.c b/src/cmd/8g/gsubr.c index a131874c6..66d5b8d69 100644 --- a/src/cmd/8g/gsubr.c +++ b/src/cmd/8g/gsubr.c @@ -216,7 +216,7 @@ gargsize(int32 size) } void -ggloblsym(Sym *s, int32 width, int dupok, int rodata) +ggloblsym(Sym *s, int32 width, int8 flags) { Prog *p; @@ -227,10 +227,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; } void |