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

Issue 138740043: code review 138740043: cmd/cc, runtime: preserve C runtime type names in gener... (Closed)

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

Description

cmd/cc, runtime: preserve C runtime type names in generated Go uintptr or uint64 in the runtime C were turning into uint in the Go, bool was turning into uint8, and so on. Fix that. Also delete Go wrappers for C functions. The C functions can be called directly now (but still eventually need to be converted to Go).

Patch Set 1 #

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

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

Total comments: 16

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -340 lines) Patch
M src/cmd/cc/dcl.c View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/cc/godefs.c View 1 1 chunk +10 lines, -43 lines 0 comments Download
M src/pkg/runtime/arch_386.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/arch_amd64.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/arch_amd64p32.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/arch_arm.go View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_386.s View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64p32.s View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M src/pkg/runtime/chan.go View 1 6 chunks +7 lines, -7 lines 0 comments Download
M src/pkg/runtime/export_test.go View 1 3 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/hashmap.go View 1 24 chunks +33 lines, -33 lines 0 comments Download
M src/pkg/runtime/hashmap_fast.go View 1 6 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/runtime/iface.go View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/runtime/malloc.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/malloc.go View 1 12 chunks +20 lines, -17 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mheap.c View 1 5 chunks +5 lines, -5 lines 0 comments Download
M src/pkg/runtime/mprof.go View 1 4 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/runtime/mprof.goc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/print.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/proc.go View 1 2 chunks +1 line, -11 lines 0 comments Download
M src/pkg/runtime/rdebug.go View 1 2 chunks +5 lines, -10 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +4 lines, -11 lines 0 comments Download
M src/pkg/runtime/sema.go View 1 8 chunks +14 lines, -18 lines 0 comments Download
M src/pkg/runtime/sigqueue.go View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/slice.go View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/string.go View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/stubs.go View 1 6 chunks +66 lines, -72 lines 0 comments Download
M src/pkg/runtime/stubs.goc View 1 2 3 4 3 chunks +0 lines, -51 lines 0 comments Download
M src/pkg/runtime/syscall_windows.go View 1 2 chunks +4 lines, -8 lines 0 comments Download
M src/pkg/runtime/thunk.s View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/time.go View 1 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 15
rsc
Hello golang-codereviews@googlegroups.com (cc: iant, khr, r), I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-27 19:52:44 UTC) #1
bradfitz
LGTM https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c File src/cmd/cc/sub.c (right): https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c#newcode1209 src/cmd/cc/sub.c:1209: if(nerrors > 1000) { leftover debugging? https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c#newcode1252 src/cmd/cc/sub.c:1252: ...
10 years, 6 months ago (2014-08-27 20:36:59 UTC) #2
bradfitz
Sorry, comments were correct, but LGTMed the wrong CL.
10 years, 6 months ago (2014-08-27 20:37:44 UTC) #3
bradfitz
https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/arch_386.go File src/pkg/runtime/arch_386.go (right): https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/arch_386.go#newcode12 src/pkg/runtime/arch_386.go:12: type intptr int32 // TODO(rsc): remove when? https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/arch_amd64.go File ...
10 years, 6 months ago (2014-08-27 20:39:31 UTC) #4
iant
https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c File src/cmd/cc/sub.c (right): https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c#newcode1209 src/cmd/cc/sub.c:1209: if(nerrors > 1000) { Should the changes to this ...
10 years, 6 months ago (2014-08-27 20:42:38 UTC) #5
rsc
https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c File src/cmd/cc/sub.c (right): https://codereview.appspot.com/138740043/diff/40001/src/cmd/cc/sub.c#newcode1252 src/cmd/cc/sub.c:1252: if(nerrors > 1000) { On 2014/08/27 20:36:59, bradfitz wrote: ...
10 years, 6 months ago (2014-08-27 20:42:59 UTC) #6
minux
https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/asm_amd64.s File src/pkg/runtime/asm_amd64.s (right): https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/asm_amd64.s#newcode624 src/pkg/runtime/asm_amd64.s:624: TEXT runtime·casuintptr(SB), NOSPLIT, $0-13 s/13/25/? https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/asm_arm.s File src/pkg/runtime/asm_arm.s (right): ...
10 years, 6 months ago (2014-08-28 00:57:16 UTC) #7
rsc
https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/arch_amd64.go File src/pkg/runtime/arch_amd64.go (right): https://codereview.appspot.com/138740043/diff/40001/src/pkg/runtime/arch_amd64.go#newcode12 src/pkg/runtime/arch_amd64.go:12: type intptr int64 // TODO(rsc): remove On 2014/08/27 20:39:31, ...
10 years, 6 months ago (2014-08-28 01:09:30 UTC) #8
rsc
Hello golang-codereviews@googlegroups.com, bradfitz@golang.org, iant@golang.org, minux@golang.org (cc: golang-codereviews@googlegroups.com, khr@golang.org, r@golang.org), Please take another look.
10 years, 6 months ago (2014-08-28 01:09:52 UTC) #9
minux
LGTM.
10 years, 6 months ago (2014-08-28 01:14:27 UTC) #10
iant
LGTM
10 years, 6 months ago (2014-08-28 01:15:49 UTC) #11
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=1411e9decfa1 *** cmd/cc, runtime: preserve C runtime type names in generated Go ...
10 years, 6 months ago (2014-08-28 01:59:55 UTC) #12
gobot
This CL appears to have broken the android-arm-crawshaw builder. See http://build.golang.org/log/83efa450c5089f1af864e3014294f888cb78731d
10 years, 6 months ago (2014-08-28 02:01:06 UTC) #13
dave_cheney.net
This is real # Building packages and commands for android/arm. runtime # runtime pkg/runtime/asm_arm.s:689 syntax ...
10 years, 6 months ago (2014-08-28 02:01:52 UTC) #14
rsc
10 years, 6 months ago (2014-08-28 02:06:45 UTC) #15
fixed
Sign in to reply to this message.

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