This patch to libgo fixes the size for the GC instructions for
unsafe.Pointer, which are hand coded.  Bootstrapped and ran Go testsuite
on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

diff -r 6b61234c2552 libgo/runtime/go-unsafe-pointer.c
--- a/libgo/runtime/go-unsafe-pointer.c	Wed Sep 03 15:44:43 2014 -0700
+++ b/libgo/runtime/go-unsafe-pointer.c	Fri Sep 05 07:41:55 2014 -0700
@@ -39,7 +39,7 @@
   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 =
 {

Reply via email to