diff mbox

libgo patch committed: Fix size for unsafe.Pointer GC instructions

Message ID mcrfvg6xh4h.fsf@iant-glaptop.roam.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor Sept. 5, 2014, 2:43 p.m. UTC
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 mbox

Patch

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 =
 {