diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2011-04-19 13:47:23 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:38 (GMT) |
commit | 1a3b988c03544e5652b30025c56fd307952b5b0d (patch) | |
tree | 848f93c948aef880390758d72770e3f73c0c7b01 /src | |
parent | 72b2c02c5063226abf45087cf1e8061adcbaf5b8 (diff) | |
download | Qt-1a3b988c03544e5652b30025c56fd307952b5b0d.zip Qt-1a3b988c03544e5652b30025c56fd307952b5b0d.tar.gz Qt-1a3b988c03544e5652b30025c56fd307952b5b0d.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/thread/qthread_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp index 304da09..2d108fd 100644 --- a/src/corelib/thread/qthread_win.cpp +++ b/src/corelib/thread/qthread_win.cpp @@ -288,7 +288,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<QThread *>(arg); QThreadData *data = QThreadData::get2(thr); |