]> Cypherpunks repositories - gostls13.git/commit
cmd/cc, runtime: preserve C runtime type names in generated Go
authorRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 01:59:49 +0000 (21:59 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 01:59:49 +0000 (21:59 -0400)
commitd21638b5ec7210e1597b96db6698471d8141a5b2
treef1532c635d6c8a4343c4e1061c7dd180f3cbc980
parent43d4f93c91587323d6141dcd4cbcccb0ee8bfab3
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).

LGTM=bradfitz, minux, iant
R=golang-codereviews, bradfitz, iant, minux
CC=golang-codereviews, khr, r
https://golang.org/cl/138740043
34 files changed:
src/cmd/cc/dcl.c
src/cmd/cc/godefs.c
src/pkg/runtime/arch_386.go
src/pkg/runtime/arch_amd64.go
src/pkg/runtime/arch_amd64p32.go
src/pkg/runtime/arch_arm.go
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_amd64p32.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/chan.go
src/pkg/runtime/export_test.go
src/pkg/runtime/hashmap.go
src/pkg/runtime/hashmap_fast.go
src/pkg/runtime/iface.go
src/pkg/runtime/malloc.go
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/mprof.go
src/pkg/runtime/mprof.goc
src/pkg/runtime/print.go
src/pkg/runtime/proc.go
src/pkg/runtime/rdebug.go
src/pkg/runtime/runtime.h
src/pkg/runtime/sema.go
src/pkg/runtime/sigqueue.go
src/pkg/runtime/slice.go
src/pkg/runtime/string.go
src/pkg/runtime/stubs.go
src/pkg/runtime/stubs.goc
src/pkg/runtime/syscall_windows.go
src/pkg/runtime/thunk.s
src/pkg/runtime/time.go