This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug go/79037] gccgo: Binaries crash with parforsetup: pos is not aligned on m68k


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]