__attribute__((aligned)) don't work for stack variables in threads created with _beginthreadex without alignment.
Signed-off-by: Aleksey Vasenev <[email protected]> --- mingw-w64-libraries/winpthreads/src/thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c b/mingw-w64-libraries/winpthreads/src/thread.c index ceea98e..9fa773a 100644 --- a/mingw-w64-libraries/winpthreads/src/thread.c +++ b/mingw-w64-libraries/winpthreads/src/thread.c @@ -1454,6 +1454,9 @@ pthread_setcanceltype (int type, int *oldtype) return 0; } +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) +__attribute__((force_align_arg_pointer)) +#endif int pthread_create_wrapper (void *args) { -- 2.9.1 ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
