[Development] Disabling thread safe static guards

Sergio Martins sergio.martins at kdab.com
Mon Jun 29 20:44:49 CEST 2015


Hi,


Can we disable gcc's feature of emitting extra code to make local static 
initialization thread safe ? (-fno-threadsafe-statics)

Since MSVC doesn't support it we can't rely on this feature in cross-platform 
Qt code (maybe only in QPA code).

Generates uneeded code and helps hidding crashes that developers using Linux 
don't notice.



Regards,
-- 
SĂ©rgio Martins | sergio.martins at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5909 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150629/b9c32ee4/attachment.bin>


More information about the Development mailing list