diff options
| author | Russ Cox <rsc@golang.org> | 2014-10-03 12:44:20 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-10-03 12:44:20 -0400 |
| commit | 3ffd29fb2cfeee77c7f58fcae3496665695eb938 (patch) | |
| tree | 4f09c078f4d7d7cef4e957c32e7919dfb23800d3 /src/runtime/runtime.h | |
| parent | c65a47f890e33eeed6ee9d8b6d965a5534fb6e0e (diff) | |
| download | go-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/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index aa300d7bb8..c4d8786089 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -384,11 +384,11 @@ struct M // these are here because they are too large to be on the stack // of low-level NOSPLIT functions. LibCall libcall; - struct { + struct MTs { int64 tv_sec; int64 tv_nsec; } ts; - struct { + struct MScratch { uintptr v[6]; } scratch; #endif |
