From: Thierry Bastian Date: Tue, 19 Apr 2011 13:47:23 +0000 (+0200) Subject: Fixed a crash on Windows XP with mingw in threaded-code X-Git-Tag: qt-v5.0.0-alpha1~4322^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1712e20a5ad7ead5981ce56b28121a9513b06dd2;p=profile%2Fivi%2Fqtbase.git Fixed a crash on Windows XP with mingw in threaded-code The thread callback doesn't align the stack on 16-bytes on WinXP. That causes a crash when we call SSE code. So now we tell the compiler to force that alignment of the stack. Task: QTBUG-18631 Reviewed-By: Olivier (cherry picked from commit 364ce5b7f5379499562b4f4f5a68da7ba068fe1e) --- diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp index bab6cf8..bdade1d 100644 --- a/src/corelib/thread/qthread_win.cpp +++ b/src/corelib/thread/qthread_win.cpp @@ -300,7 +300,7 @@ void QThreadPrivate::createEventDispatcher(QThreadData *data) #ifndef QT_NO_THREAD -unsigned int __stdcall QThreadPrivate::start(void *arg) +unsigned int __stdcall QT_ENSURE_STACK_ALIGNED_FOR_SSE QThreadPrivate::start(void *arg) { QThread *thr = reinterpret_cast(arg); QThreadData *data = QThreadData::get2(thr);