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

Issue 4953048: code review 4953048: src/cmd/5g/*: Adjustments for compilation with Plan 9 t... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by lucio
Modified:
13 years, 8 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

src/cmd/5g/*: Adjustments for compilation with Plan 9 tool chain. 5g/cgen.c: . USED(n4) as it is only mentioned in unreachable code later; . dropped unused assignments; . commented out unreachable code; 5g/cgen64.c: 5g/ggen.c: . dropped unused assignments of function return value; 5g/gg.h: . added varargck pragmas; 5g/peep.c: . USED(p1) used only in unreacheable code; . commented out unreachable code; 5g/reg.c: . dropped unused assignment;

Patch Set 1 #

Patch Set 2 : diff -r 88744261dd47 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b982a9b23f2b https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r b982a9b23f2b https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 5e1053337103 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -14 lines) Patch
M src/cmd/5g/cgen.c View 1 9 chunks +5 lines, -6 lines 0 comments Download
M src/cmd/5g/cgen64.c View 1 4 chunks +5 lines, -5 lines 0 comments Download
M src/cmd/5g/gg.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/cmd/5g/ggen.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5g/peep.c View 1 2 3 5 chunks +7 lines, -1 line 0 comments Download
M src/cmd/5g/reg.c View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8
lucio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, rsc@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-08-26 21:15:49 UTC) #1
rsc
http://codereview.appspot.com/4953048/diff/4001/src/cmd/5g/peep.c File src/cmd/5g/peep.c (right): http://codereview.appspot.com/4953048/diff/4001/src/cmd/5g/peep.c#newcode48 src/cmd/5g/peep.c:48: Prog *p, *p1 = 0; init after decls. so ...
13 years, 8 months ago (2011-08-26 21:25:18 UTC) #2
lucio
On Fri, Aug 26, 2011 at 11:25 PM, <rsc@golang.org> wrote: > > http://codereview.appspot.com/**4953048/diff/4001/src/cmd/5g/**peep.c<http://codereview.appspot.com/4953048/diff/4001/src/cmd/5g/peep.c> > File ...
13 years, 8 months ago (2011-08-26 21:39:55 UTC) #3
rsc
> Except that the return is redundant. Should I not just drop it? the return ...
13 years, 8 months ago (2011-08-26 21:41:19 UTC) #4
lucio
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-08-26 22:36:38 UTC) #5
lucio
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-08-27 16:46:57 UTC) #6
rsc
LGTM
13 years, 8 months ago (2011-08-29 13:03:28 UTC) #7
rsc
13 years, 8 months ago (2011-08-29 13:34:58 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=804d28c1d921 ***

5g: fix build on Plan 9

5g/cgen.c:
. USED(n4) as it is only mentioned in unreachable code later;
. dropped unused assignments;
. commented out unreachable code;
5g/cgen64.c:
5g/ggen.c:
. dropped unused assignments of function return value;
5g/gg.h:
. added varargck pragmas;
5g/peep.c:
. USED(p1) used only in unreacheable code;
. commented out unreachable code;
5g/reg.c:
. dropped unused assignment;

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/4953048

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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