aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-01-17 22:43:03 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-01-17 22:43:03 +0000
commit6fbfce78414ba46235cd73d6d0981ad11c7c8b88 (patch)
tree50fa57bb31e2134bc971c504a8c1ab41ad62f545
parent2043135ab207e40a1f318161d389631518f26179 (diff)
downloadgcc-6fbfce78414ba46235cd73d6d0981ad11c7c8b88.zip
gcc-6fbfce78414ba46235cd73d6d0981ad11c7c8b88.tar.gz
gcc-6fbfce78414ba46235cd73d6d0981ad11c7c8b88.tar.bz2
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
-rw-r--r--libgo/runtime/mgc0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/mgc0.c b/libgo/runtime/mgc0.c
index 8ceece3..d5ce9c8 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,