[Development] Pointer aliasing problem in optimized gcc builds

Thiago Macieira thiago.macieira at intel.com
Fri Sep 13 18:40:18 CEST 2013


On sexta-feira, 13 de setembro de 2013 20:13:30, Konstantin Tokarev wrote:
> 13.09.2013, 19:51, "Thiago Macieira" <thiago.macieira at intel.com>:
> > On sexta-feira, 13 de setembro de 2013 17:22:32, Olivier Goffart wrote:
> >>>  * How bad are -O3 compiles? I've read that it's completely safe for
> >>>  well-written code but using optimization aggressively, may cause
> >>> undefined
> >>>  behavior or even runtime crashes for bad codes. How is Qt code?
> > 
> > I've only used -O3 for my optimised builds for 6 years. In fact, I only
> > run Qt 4 with -O3 nowadays, except when I need to debug something.
> 
> Strict aliasing is enabled at -O2 as well.

There are no known aliasing violations in Qt, outside of qtdeclarative.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- 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/20130913/2f80ced9/attachment.sig>


More information about the Development mailing list