diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-10-29 18:14:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-10-29 18:14:50 +0000 |
commit | f4a513a98e6341b2d4796752644a27c722612847 (patch) | |
tree | 571dc5d41bd31a1e7befb942446857d17016547b /libgo/runtime/go-unsafe-pointer.c | |
parent | bdb60a10ac876bd1d68ab7b0b0ff2acc69e0c214 (diff) | |
download | gcc-f4a513a98e6341b2d4796752644a27c722612847.zip gcc-f4a513a98e6341b2d4796752644a27c722612847.tar.gz gcc-f4a513a98e6341b2d4796752644a27c722612847.tar.bz2 |
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
From-SVN: r229546
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 a59ae85..ce82fcd 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 |