From: ian Date: Fri, 5 Sep 2014 14:43:24 +0000 (+0000) Subject: runtime: Use correct size for unsafe.Pointer GC instructions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d5e9fa2021150e5cd646182d987991d798c86f6;p=thirdparty%2Fgcc.git runtime: Use correct size for unsafe.Pointer GC instructions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214965 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libgo/runtime/go-unsafe-pointer.c b/libgo/runtime/go-unsafe-pointer.c index 67b2999df5db..729e9a197366 100644 --- a/libgo/runtime/go-unsafe-pointer.c +++ b/libgo/runtime/go-unsafe-pointer.c @@ -39,7 +39,7 @@ static const String reflection_string = sizeof REFLECTION - 1 }; -const uintptr unsafe_Pointer_gc[] = {8, GC_APTR, 0, GC_END}; +const uintptr unsafe_Pointer_gc[] = {sizeof(void*), GC_APTR, 0, GC_END}; const struct __go_type_descriptor unsafe_Pointer = {