* GCC 6 patch: Add aligned attribute for m68k support
@ 2017-02-01 23:05 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2017-02-01 23:05 UTC (permalink / raw)
To: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
This patch by John Paul Adrian Glaubitz fixes m68k libgo on the GCC 6
branch, by adding alignment required by the kernel but not otherwise
imposed by the m68k backend. I bootstrapped and ran Go tests on
x86_64-pc-linux-gnu, Adrian tested on m68k. Committed to GCC 6
branch.
Ian
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 640 bytes --]
@@ -, +, @@
---
libgo/runtime/runtime.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/libgo/runtime/runtime.h
+++ a/libgo/runtime/runtime.h
@@ -154,14 +154,14 @@ struct Lock
// Futex-based impl treats it as uint32 key,
// while sema-based impl as M* waitm.
// Used to be a union, but unions break precise GC.
- uintptr key;
+ uintptr key __attribute__((aligned(4)));
};
struct Note
{
// Futex-based impl treats it as uint32 key,
// while sema-based impl as M* waitm.
// Used to be a union, but unions break precise GC.
- uintptr key;
+ uintptr key __attribute__((aligned(4)));
};
struct String
{
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-01 23:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01 23:05 GCC 6 patch: Add aligned attribute for m68k support 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).