From 6fbfce78414ba46235cd73d6d0981ad11c7c8b88 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 17 Jan 2014 22:43:03 +0000 Subject: [PATCH] re PR go/59866 (gccgo gc work buffer is misaligned) PR go/59866 runtime: Force work variable in mgc0 to be aligned on 8-byte boundary. From-SVN: r206738 --- libgo/runtime/mgc0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/runtime/mgc0.c b/libgo/runtime/mgc0.c index 8ceece37b5a..d5ce9c883b1 100644 --- a/libgo/runtime/mgc0.c +++ b/libgo/runtime/mgc0.c @@ -180,7 +180,7 @@ static struct { Obj *roots; uint32 nroot; uint32 rootcap; -} work; +} work __attribute__((aligned(8))); enum { GC_DEFAULT_PTR = GC_NUM_INSTR,