aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-09-05 14:43:24 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-09-05 14:43:24 +0000
commita7188cc6500d6805a4d8de9d74ecc6d728d4af33 (patch)
treea20461419ded4eb4d2af85e0008282c19a0d3406 /libgo
parent345b82befbb91d50a57ed875b8d5b9232ffa0736 (diff)
downloadgcc-a7188cc6500d6805a4d8de9d74ecc6d728d4af33.zip
gcc-a7188cc6500d6805a4d8de9d74ecc6d728d4af33.tar.gz
gcc-a7188cc6500d6805a4d8de9d74ecc6d728d4af33.tar.bz2
runtime: Use correct size for unsafe.Pointer GC instructions.
From-SVN: r214965
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/go-unsafe-pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-unsafe-pointer.c b/libgo/runtime/go-unsafe-pointer.c
index 67b2999..729e9a1 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 =
{