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

Issue 4964046: code review 4964046: src/cmd/gc/*: Adjustments for compilation using Plan 9 ... (Closed)

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

Description

src/cmd/gc/*: Adjustments for compilation using Plan 9 tool chain. gc/bits.c . improved format with associated cast; gc/closure.c gc/dcl.c gc/range.c gc/reflect.c gc/sinit.c . dropped unnecessary assignments; gc/gen.c . dropped unnecessary assignment; . added static qualifier to local function definition; gc/go.h . added varargck pragmas; gc/lex.c . used {} instead of ; in if statement to suppress warning; . replaced exit(0) with exits(0); . added compilation conditions for SIGBUS/SIGSEGV; . dropped unnecessary assignment; gc/mparith2.c . dropped four unnecessary assignments/initialisations; gc/obj.c . added type cast to local pointer; gc/pgen.c . added cast and related print format; gc/subr.c . replaced exit(1) with exits("error"); . replaced unlink() with remove(); . renamed local cistrmp() as ucistrmp() to remove conflict with Plan 9 function by the same name; gc/swt.c . added braces instead of ; as empty statment; gc/typecheck.c . added static qualifier to local function definition; . dropped unnecessary assignments; gc/walk.c . dropped unnecessary assignments; . added static qualifier to local function definitions;

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: 10

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 (+53 lines, -39 lines) Patch
M src/cmd/gc/bits.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/closure.c View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/cmd/gc/dcl.c View 1 2 chunks +0 lines, -3 lines 0 comments Download
M src/cmd/gc/gen.c View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/cmd/gc/go.h View 1 3 1 chunk +20 lines, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 2 3 7 chunks +7 lines, -7 lines 0 comments Download
M src/cmd/gc/mparith2.c View 1 4 chunks +4 lines, -0 lines 0 comments Download
M src/cmd/gc/obj.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/pgen.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/range.c View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/cmd/gc/reflect.c View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/cmd/gc/sinit.c View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M src/cmd/gc/subr.c View 1 2 3 5 chunks +8 lines, -6 lines 0 comments Download
M src/cmd/gc/swt.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/gc/typecheck.c View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 4 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 7
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, 7 months ago (2011-08-26 21:14:57 UTC) #1
rsc
http://codereview.appspot.com/4964046/diff/4001/src/cmd/gc/esc.c File src/cmd/gc/esc.c (right): http://codereview.appspot.com/4964046/diff/4001/src/cmd/gc/esc.c#newcode1 src/cmd/gc/esc.c:1: // Copyright 2011 The Go Authors. All rights reserved. ...
13 years, 7 months ago (2011-08-26 21:38:18 UTC) #2
lucio
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-26 22:33:19 UTC) #3
lucio
I'm concerned that the code may not compile under plan 9 because of incomplete structures, ...
13 years, 7 months ago (2011-08-26 22:33:37 UTC) #4
lucio
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-27 16:47:50 UTC) #5
rsc
LGTM
13 years, 7 months ago (2011-08-29 13:09:00 UTC) #6
rsc
13 years, 7 months ago (2011-08-29 13:35:07 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=b6ff5ee34de8 ***

gc: fix build on Plan 9

gc/bits.c
. improved format with associated cast;
gc/closure.c
gc/dcl.c
gc/range.c
gc/reflect.c
gc/sinit.c
. dropped unnecessary assignments;
gc/gen.c
. dropped unnecessary assignment;
. added static qualifier to local function definition;
gc/go.h
. added varargck pragmas;
gc/lex.c
. used {} instead of ; in if statement to suppress warning;
. replaced exit(0) with exits(0);
. added compilation conditions for SIGBUS/SIGSEGV;
. dropped unnecessary assignment;
gc/mparith2.c
. dropped four unnecessary assignments/initialisations;
gc/obj.c
. added type cast to local pointer;
gc/pgen.c
. added cast and related print format;
gc/subr.c
. replaced exit(1) with exits("error");
. replaced unlink() with remove();
. renamed local cistrmp() as ucistrmp() to remove conflict with
  Plan 9 function by the same name;
gc/swt.c
. added braces instead of ; as empty statment;
gc/typecheck.c
. added static qualifier to local function definition;
. dropped unnecessary assignments;
gc/walk.c
. dropped unnecessary assignments;
. added static qualifier to local function definitions;

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

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