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

Issue 106860045: code review 106860045: build: annotations and modifications for c2go (Closed)

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

Description

build: annotations and modifications for c2go The main changes fall into a few patterns: 1. Replace #define with enum. 2. Add /*c2go */ comment giving effect of #define. This is necessary for function-like #defines and non-enum-able #defined constants. (Not all compilers handle negative or large enums.) 3. Add extra braces in struct initializer. (c2go does not implement the full rules.) This is enough to let c2go typecheck the source tree. There may be more changes once it is doing other semantic analyses.

Patch Set 1 #

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

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

Total comments: 17

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

Patch Set 5 : diff -r 04a5bbd18c65 https://code.google.com/p/go/ #

Total comments: 3

Patch Set 6 : diff -r 7a6d59a2ad76 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1757 lines, -1628 lines) Patch
M include/bio.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M include/link.h View 1 5 2 chunks +3 lines, -1 line 0 comments Download
M src/cmd/5g/galign.c View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/5g/gg.h View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M src/cmd/5g/gsubr.c View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/5g/opt.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M src/cmd/5g/peep.c View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/5g/reg.c View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/cmd/5l/5.out.h View 1 2 3 chunks +60 lines, -47 lines 0 comments Download
M src/cmd/6g/galign.c View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/6g/gsubr.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/6g/opt.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M src/cmd/6g/reg.c View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/cmd/6l/6.out.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/8g/galign.c View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/cmd/8g/opt.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M src/cmd/8g/peep.c View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/cmd/8g/reg.c View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/cmd/8l/8.out.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/buildgc.c View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M src/cmd/gc/bisonerrors View 1 2 chunks +17 lines, -1 line 0 comments Download
M src/cmd/gc/const.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/esc.c View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 2 5 chunks +161 lines, -165 lines 0 comments Download
M src/cmd/gc/md5.c View 1 1 chunk +9 lines, -1 line 0 comments Download
M src/cmd/gc/plive.c View 1 2 chunks +9 lines, -2 lines 0 comments Download
M src/cmd/gc/popt.c View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/gc/subr.c View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/gc/swt.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/yerr.h View 1 1 chunk +42 lines, -42 lines 0 comments Download
M src/cmd/ld/textflag.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/liblink/asm5.c View 1 2 2 chunks +1 line, -59 lines 0 comments Download
M src/liblink/asm6.c View 1 2 3 4 5 2 chunks +773 lines, -771 lines 0 comments Download
M src/liblink/asm8.c View 1 2 1 chunk +500 lines, -500 lines 0 comments Download
M src/liblink/ld.c View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/liblink/obj6.c View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/liblink/obj8.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/liblink/sym.c View 1 2 3 4 5 1 chunk +14 lines, -14 lines 0 comments Download
M src/pkg/runtime/funcdata.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/stack.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11
rsc
Hello minux (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-07-01 13:17:40 UTC) #1
dave_cheney.net
Build passes on linux/arm and darwin/amd64 https://codereview.appspot.com/106860045/diff/20001/src/cmd/5l/5.out.h File src/cmd/5l/5.out.h (right): https://codereview.appspot.com/106860045/diff/20001/src/cmd/5l/5.out.h#newcode52 src/cmd/5l/5.out.h:52: REGM = REGEXT-1, ...
10 years, 11 months ago (2014-07-01 13:46:31 UTC) #2
rsc
https://codereview.appspot.com/106860045/diff/20001/src/cmd/5l/5.out.h File src/cmd/5l/5.out.h (right): https://codereview.appspot.com/106860045/diff/20001/src/cmd/5l/5.out.h#newcode52 src/cmd/5l/5.out.h:52: REGM = REGEXT-1, On 2014/07/01 13:46:31, dfc wrote: > ...
10 years, 11 months ago (2014-07-01 15:14:29 UTC) #3
bradfitz
https://codereview.appspot.com/106860045/diff/20001/include/link.h File include/link.h (right): https://codereview.appspot.com/106860045/diff/20001/include/link.h#newcode172 include/link.h:172: int np; what was this one for?
10 years, 11 months ago (2014-07-01 16:06:11 UTC) #4
minux
https://codereview.appspot.com/106860045/diff/20001/src/cmd/8l/8.out.h File src/cmd/8l/8.out.h (right): https://codereview.appspot.com/106860045/diff/20001/src/cmd/8l/8.out.h#newcode676 src/cmd/8l/8.out.h:676: #define SYMDEF "__.GOSYMDEF" so this one doesn't need /*c2go ...
10 years, 11 months ago (2014-07-01 17:48:58 UTC) #5
rsc
PTAL https://codereview.appspot.com/106860045/diff/20001/include/link.h File include/link.h (right): https://codereview.appspot.com/106860045/diff/20001/include/link.h#newcode172 include/link.h:172: int np; On 2014/07/01 16:06:10, bradfitz wrote: > ...
10 years, 11 months ago (2014-07-01 18:13:20 UTC) #6
minux
LGTM.
10 years, 11 months ago (2014-07-01 18:48:04 UTC) #7
rsc
https://codereview.appspot.com/106860045/diff/20001/include/link.h File include/link.h (right): https://codereview.appspot.com/106860045/diff/20001/include/link.h#newcode172 include/link.h:172: int np; now i remember. liblink/objfile.c contains rddata(f, &s->p, ...
10 years, 11 months ago (2014-07-01 19:36:10 UTC) #8
iant
LGTM https://codereview.appspot.com/106860045/diff/60001/src/cmd/5g/opt.h File src/cmd/5g/opt.h (right): https://codereview.appspot.com/106860045/diff/60001/src/cmd/5g/opt.h#newcode64 src/cmd/5g/opt.h:64: uint32 BLOAD(Reg*); As far as I can see ...
10 years, 11 months ago (2014-07-01 22:22:57 UTC) #9
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=0395dabe997a *** build: annotations and modifications for c2go The main changes fall ...
10 years, 11 months ago (2014-07-02 19:41:32 UTC) #10
gobot
10 years, 11 months ago (2014-07-02 19:57:56 UTC) #11
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64-race builder.
See http://build.golang.org/log/f2272da8d4240bb745e707f39a72455f7407c61c
Sign in to reply to this message.

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