diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-29 18:14:50 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-29 18:14:50 +0000 |
commit | 19d0f2fa7d70a2e7256a3b68087b7cd7840c0bcd (patch) | |
tree | 571dc5d41bd31a1e7befb942446857d17016547b /libgo/runtime/go-unsafe-pointer.c | |
parent | 3f2bdc95466d7474b448d5a72abb5d284872f293 (diff) |
compiler, reflect, runtime: remove zero field from type descriptor
Type descriptors picked up a zero field because the gc map
implementation used it. However, it's since been dropped by the gc
library. It was never used by gccgo. Drop it now in preparation for
upgrading to the Go 1.5 library.
Reviewed-on: https://go-review.googlesource.com/16486
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-unsafe-pointer.c')
-rw-r--r-- | libgo/runtime/go-unsafe-pointer.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libgo/runtime/go-unsafe-pointer.c b/libgo/runtime/go-unsafe-pointer.c index a59ae852185e..ce82fcd40706 100644 --- a/libgo/runtime/go-unsafe-pointer.c +++ b/libgo/runtime/go-unsafe-pointer.c @@ -10,9 +10,6 @@ #include "go-type.h" #include "mgc0.h" -/* A pointer with a zero value. */ -static void *zero_pointer; - /* This file provides the type descriptor for the unsafe.Pointer type. The unsafe package is defined by the compiler itself, which means that there is no package to compile to define the type @@ -64,9 +61,7 @@ const struct __go_type_descriptor unsafe_Pointer = /* __uncommon */ NULL, /* __pointer_to_this */ - NULL, - /* __zero */ - &zero_pointer + NULL }; /* We also need the type descriptor for the pointer to unsafe.Pointer, @@ -109,9 +104,7 @@ const struct __go_ptr_type pointer_unsafe_Pointer = /* __uncommon */ NULL, /* __pointer_to_this */ - NULL, - /* __zero */ - &zero_pointer + NULL }, /* __element_type */ &unsafe_Pointer |