From: Ian Lance Taylor Date: Fri, 5 Sep 2014 14:43:24 +0000 (+0000) Subject: runtime: Use correct size for unsafe.Pointer GC instructions. X-Git-Tag: releases/gcc-5.1.0~4788 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7188cc6500d6805a4d8de9d74ecc6d728d4af33;p=thirdparty%2Fgcc.git runtime: Use correct size for unsafe.Pointer GC instructions. From-SVN: r214965 --- 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 = {