public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libgo patch committed: Align variable on 8-byte boundary
@ 2014-01-17 22:43 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2014-01-17 22:43 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

This patch to libgo aligns the variable work in mgc0.c on an 8-byte
boundary.  The code expects that to be the case, and complains if it is
not aligned.  It would already be the case on a 64-bit system, but not
necessarily on a 32-bit system.  I haven't been able to recreate PR
59866, but I think this will fix it.  Bootstrapped and ran Go testsuite
on x86_64-unknown-linux-gnu.  Committed to 4.8 branch and mainline.

Ian


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 315 bytes --]

diff -r f1ef2f3189a2 libgo/runtime/mgc0.c
--- a/libgo/runtime/mgc0.c	Thu Jan 16 20:32:18 2014 -0800
+++ b/libgo/runtime/mgc0.c	Fri Jan 17 14:36:08 2014 -0800
@@ -180,7 +180,7 @@
 	Obj	*roots;
 	uint32	nroot;
 	uint32	rootcap;
-} work;
+} work __attribute__((aligned(8)));
 
 enum {
 	GC_DEFAULT_PTR = GC_NUM_INSTR,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-17 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-17 22:43 libgo patch committed: Align variable on 8-byte boundary Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).