[Development] Pointer aliasing problem in optimized gcc builds

Konstantin Tokarev annulen at yandex.ru
Fri Sep 13 18:13:30 CEST 2013



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.

-- 
Regards,
Konstantin



More information about the Development mailing list