diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2014-07-20 18:52:46 +0400 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-07-20 18:52:46 +0400 |
commit | 53a7c726e54565f18fbcb7e81d57abc29690dc8c (patch) | |
tree | e45470df8a06c077161925b7deb11b5e1d8c8edc /src/cmd/gc | |
parent | b611e3621530bc4cbb9f6fa0f394fcbce36e506d (diff) | |
download | go-53a7c726e54565f18fbcb7e81d57abc29690dc8c.tar.gz |
cmd/gc: do not mark PC as pointer on stack
GC thinks that it's an invalid pointer on plan9:
http://build.golang.org/log/f7da638a20544ef7f45e81f23fdbc4875044c296
LGTM=0intro
R=golang-codereviews, 0intro
CC=aram, golang-codereviews
https://codereview.appspot.com/113350043
Diffstat (limited to 'src/cmd/gc')
-rw-r--r-- | src/cmd/gc/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/select.c b/src/cmd/gc/select.c index 7346cf581..86313cb2b 100644 --- a/src/cmd/gc/select.c +++ b/src/cmd/gc/select.c @@ -347,7 +347,7 @@ selecttype(int32 size) scase = nod(OTSTRUCT, N, N); scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("sg")), sudog)); scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("chan")), typenod(ptrto(types[TUINT8])))); - scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("pc")), typenod(ptrto(types[TUINT8])))); + scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("pc")), typenod(types[TUINTPTR]))); scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("kind")), typenod(types[TUINT16]))); scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("so")), typenod(types[TUINT16]))); scase->list = list(scase->list, nod(ODCLFIELD, newname(lookup("receivedp")), typenod(ptrto(types[TUINT8])))); |