This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/79037] gccgo: Binaries crash with parforsetup: pos is not aligned on m68k
- From: "glaubitz at physik dot fu-berlin.de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jan 2017 23:15:51 +0000
- Subject: [Bug go/79037] gccgo: Binaries crash with parforsetup: pos is not aligned on m68k
- Auto-submitted: auto-generated
- References: <bug-79037-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79037
--- Comment #1 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Rebuilding gcc with the following change now:
--- a/src/libgo/runtime/runtime.h.old 2016-02-12 23:10:09.000000000 +0100
+++ b/src/libgo/runtime/runtime.h 2017-01-10 00:12:08.404802087 +0100
@@ -429,7 +429,7 @@
uint32 cnt; // iteration space [0, cnt)
bool wait; // if true, wait while all threads
finish processing,
// otherwise parfor may return while
other threads are still working
- ParForThread *thr; // array of thread descriptors
+ ParForThread *thr __attribute__((aligned(4))); // array of thread
descriptors
// stats
uint64 nsteal;
uint64 nstealcnt;
I'll report back tomorrow.