Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(522)

Issue 150360043: code review 150360043: cmd/cc, runtime: disallow structs without tags (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by rsc
Modified:
10 years, 5 months ago
Reviewers:
iant, bradfitz
CC:
golang-codereviews, bradfitz, dave_cheney.net, iant, khr, r
Visibility:
Public.

Description

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.)

Patch Set 1 #

Patch Set 2 : diff -r 2e467bc60e64def06419194f48fe0d6c8b56765d https://code.google.com/p/go/ #

Patch Set 3 : diff -r 2e467bc60e64def06419194f48fe0d6c8b56765d https://code.google.com/p/go/ #

Total comments: 3

Patch Set 4 : diff -r 920cde0a8b2da27af525c93e7fd4b9f456264816 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -768 lines) Patch
M src/cmd/cc/cc.y View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/cc/y.tab.h View 1 4 chunks +22 lines, -46 lines 0 comments Download
M src/cmd/cc/y.tab.c View 1 2 3 211 chunks +467 lines, -706 lines 0 comments Download
M src/runtime/malloc.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M src/runtime/os_plan9.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/proc.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/vdso_linux_amd64.c View 1 2 8 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-codereviews@googlegroups.com (cc: dfc, iant, khr, r), I'd like you to review this change to ...
10 years, 5 months ago (2014-10-01 00:50:43 UTC) #1
bradfitz
LGTM
10 years, 5 months ago (2014-10-01 00:56:53 UTC) #2
dave_cheney.net
Thanks Russ. https://codereview.appspot.com/150360043/diff/40001/src/cmd/cc/cc.y File src/cmd/cc/cc.y (right): https://codereview.appspot.com/150360043/diff/40001/src/cmd/cc/cc.y#newcode1046 src/cmd/cc/cc.y:1046: diag(Z, "tagless struct"); nit: i know this ...
10 years, 5 months ago (2014-10-01 00:59:43 UTC) #3
iant
LGTM
10 years, 5 months ago (2014-10-01 01:11:23 UTC) #4
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=6f838e507399 *** cmd/cc, runtime: disallow structs without tags Structs without tags have ...
10 years, 5 months ago (2014-10-03 16:44:24 UTC) #5
rsc
10 years, 5 months ago (2014-10-03 16:49:08 UTC) #6
Message was sent while issue was closed.

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b