]> Cypherpunks repositories - gostls13.git/commit
gc: unsafe.Pointer is not a pointer
authorRuss Cox <rsc@golang.org>
Mon, 7 Mar 2011 20:10:01 +0000 (15:10 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 7 Mar 2011 20:10:01 +0000 (15:10 -0500)
commit5c2666c18cb6b06a4c05afe86aa1abd4e1addde7
tree6a6a2a316f9b71c8bfacfbdad9178f5c6aa49c2c
parent22c45c558b69e7f7bdb0ec37519e02d333188da4
gc: unsafe.Pointer is not a pointer

Change unsafe.Pointer to be its own kind of
type, instead of making it equivalent to *any.
The change complicates import and export
but avoids the need to find all the places that
operate on pointers but should not operate on
unsafe.Pointer.

Fixes #1566. (a different way)
Fixes #1582.

R=ken2
CC=golang-dev
https://golang.org/cl/4264050
src/cmd/gc/align.c
src/cmd/gc/builtin.c.boot
src/cmd/gc/const.c
src/cmd/gc/dcl.c
src/cmd/gc/go.h
src/cmd/gc/reflect.c
src/cmd/gc/subr.c
src/cmd/gc/typecheck.c
src/cmd/gc/unsafe.go
test/fixedbugs/bug325.go