]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR go/59866 (gccgo gc work buffer is misaligned)
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 17 Jan 2014 22:43:03 +0000 (22:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 17 Jan 2014 22:43:03 +0000 (22:43 +0000)
PR go/59866
runtime: Force work variable in mgc0 to be aligned on 8-byte boundary.

From-SVN: r206738

libgo/runtime/mgc0.c

index 8ceece37b5afb89d17462d24b2b3684eb13055fb..d5ce9c883b1e066062020349769a01b81c9c7251 100644 (file)
@@ -180,7 +180,7 @@ static struct {
        Obj     *roots;
        uint32  nroot;
        uint32  rootcap;
-} work;
+} work __attribute__((aligned(8)));
 
 enum {
        GC_DEFAULT_PTR = GC_NUM_INSTR,