[Development] Choosing a new MinGW for Qt 5

Thiago Macieira thiago.macieira at intel.com
Sat Sep 1 12:39:11 CEST 2012


On sábado, 1 de setembro de 2012 12.23.31, Peter Kümmel wrote:
>      "As a general rule, you should choose the default SJLJ packages,
>       unless you know you need faster exception handling and can guarantee
>       you'll never need to unwind through non-DW2-compiled stack frames
>       (such as a Windows callback)"
>      Using SJLJ "can work across code that has not been compiled with
>      GCC or that does not have call-stack unwinding information."

We don't need that.

Unwinding the stack through C functions and code that isn't exception-safe in 
the first place is stupid. The only sane outcome of doing that is a crash.

What's more, all Qt libraries aside from QtCore and QtXmlPatterns are built 
with exceptions disabled. That means that if your code leaks an exception 
through a GUI event loop or a signal from one of those classes, the 
application will crash.

So we don't need SJLJ.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120901/55813bd6/attachment.sig>


More information about the Development mailing list