summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/arch_amd64.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-27 21:59:49 -0400
committerRuss Cox <rsc@golang.org>2014-08-27 21:59:49 -0400
commit3ed5cd831cec9e6a4c8004cbd65a3ba0b40be26c (patch)
tree54ab4c93040b82f88859c09f1135c85c2e224d95 /src/pkg/runtime/arch_amd64.go
parent6cf8ddd13fefdb19ee1cd9ee2e57cda6ac22f4d9 (diff)
downloadgo-3ed5cd831cec9e6a4c8004cbd65a3ba0b40be26c.tar.gz
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://codereview.appspot.com/138740043
Diffstat (limited to 'src/pkg/runtime/arch_amd64.go')
-rw-r--r--src/pkg/runtime/arch_amd64.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/arch_amd64.go b/src/pkg/runtime/arch_amd64.go
index 32eafb549..fe60c7066 100644
--- a/src/pkg/runtime/arch_amd64.go
+++ b/src/pkg/runtime/arch_amd64.go
@@ -7,3 +7,6 @@ package runtime
const (
cacheLineSize = 64
)
+
+type uintreg uint64
+type intptr int64 // TODO(rsc): remove