aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-10-03 12:44:20 -0400
committerRuss Cox <rsc@golang.org>2014-10-03 12:44:20 -0400
commit3ffd29fb2cfeee77c7f58fcae3496665695eb938 (patch)
tree4f09c078f4d7d7cef4e957c32e7919dfb23800d3 /src/runtime/proc.c
parentc65a47f890e33eeed6ee9d8b6d965a5534fb6e0e (diff)
downloadgo-3ffd29fb2cfeee77c7f58fcae3496665695eb938.tar.xz
cmd/cc, runtime: disallow structs without tags
Structs without tags have no unique name to use in the Go definitions generated from the C types. This caused issue 8812, fixed by CL 149260043. Avoid future problems by requiring struct tags. Update runtime as needed. (There is no other C code in the tree.) LGTM=bradfitz, iant R=golang-codereviews, bradfitz, dave, iant CC=golang-codereviews, khr, r https://golang.org/cl/150360043
Diffstat (limited to 'src/runtime/proc.c')
-rw-r--r--src/runtime/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index e84dc1d048..1426790f40 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -2421,7 +2421,7 @@ runtime·mcount(void)
return runtime·sched.mcount;
}
-static struct {
+static struct ProfState {
uint32 lock;
int32 hz;
} prof;