]> Cypherpunks repositories - gostls13.git/commit
cmd/cc, runtime: disallow structs without tags
authorRuss Cox <rsc@golang.org>
Fri, 3 Oct 2014 16:44:20 +0000 (12:44 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 3 Oct 2014 16:44:20 +0000 (12:44 -0400)
commit3ffd29fb2cfeee77c7f58fcae3496665695eb938
tree4f09c078f4d7d7cef4e957c32e7919dfb23800d3
parentc65a47f890e33eeed6ee9d8b6d965a5534fb6e0e
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
src/cmd/cc/cc.y
src/cmd/cc/y.tab.c
src/cmd/cc/y.tab.h
src/runtime/malloc.h
src/runtime/os_plan9.h
src/runtime/proc.c
src/runtime/runtime.h
src/runtime/vdso_linux_amd64.c