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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7188cc6500d6805a4d8de9d74ecc6d728d4af33;p=gcc.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 67b2999df5d..729e9a19736 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 = {