]> Cypherpunks repositories - gostls13.git/commit
gc: fix build on Plan 9
authorLucio De Re <lucio.dere@gmail.com>
Mon, 29 Aug 2011 13:35:04 +0000 (09:35 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 13:35:04 +0000 (09:35 -0400)
commitb3cc4897be0c8131a2b50d2349a0d8249b46b444
treeb0a268c24097cc8ec4f33670c36d4f6f9f95464f
parent219c9e9c46a732add952923ed3fdb5316aba8674
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
https://golang.org/cl/4964046
16 files changed:
src/cmd/gc/bits.c
src/cmd/gc/closure.c
src/cmd/gc/dcl.c
src/cmd/gc/gen.c
src/cmd/gc/go.h
src/cmd/gc/lex.c
src/cmd/gc/mparith2.c
src/cmd/gc/obj.c
src/cmd/gc/pgen.c
src/cmd/gc/range.c
src/cmd/gc/reflect.c
src/cmd/gc/sinit.c
src/cmd/gc/subr.c
src/cmd/gc/swt.c
src/cmd/gc/typecheck.c
src/cmd/gc/walk.c