From: Dmitriy Vyukov Date: Tue, 29 Jul 2014 10:45:07 +0000 (+0400) Subject: runtime: mark global var as NOPTR X-Git-Tag: go1.4beta1~998 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5dab2da9544422d8953b2d3e4a41acaf84a2d2c4;p=gostls13.git runtime: mark global var as NOPTR LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/119300043 --- diff --git a/src/pkg/runtime/sigqueue.goc b/src/pkg/runtime/sigqueue.goc index e08bf98aad..376e77a2e4 100644 --- a/src/pkg/runtime/sigqueue.goc +++ b/src/pkg/runtime/sigqueue.goc @@ -31,10 +31,12 @@ package runtime #include "cgocall.h" #include "../../cmd/ld/textflag.h" +#pragma textflag NOPTR static struct { Note; uint32 mask[(NSIG+31)/32]; uint32 wanted[(NSIG+31)/32]; + uint32 recv[(NSIG+31)/32]; uint32 state; bool inuse; } sig; @@ -83,14 +85,13 @@ runtime·sigsend(int32 s) // Called to receive the next queued signal. // Must only be called from a single goroutine at a time. func signal_recv() (m uint32) { - static uint32 recv[nelem(sig.mask)]; uint32 i, old, new; for(;;) { // Serve from local copy if there are bits left. for(i=0; i