So what does the flag do and how can someone find issues caused by it? Will lint help?
On Sun, Feb 21, 2010 at 4:45 PM, Stefan Teleman <stefan.teleman at gmail.com> wrote: > On Sun, Feb 21, 2010 at 08:42, Pavel Heimlich <tropikhajma at gmail.com> > wrote: >> Hi, >> the recent crashes in kdeinit4 were resolved (send flowers to ade who found >> out the cause first). >> >> They were caused by the use of '-xalias_level=compatible' flag in qt, which >> we did not use globally before. As a quick counter-measure I've removed the >> flag from our includes. >> >> After reading about it in the Studio User's Guide I think it's quite a >> dangerous flag to use on a code that is not under our control and I am not >> sure if the performance benefits would outweigh increased risk of weird >> crashes. > > Do you understand what that flag does ? > > A bunch of dramatic statements with no basis in fact, which do not > explain why pointer aliasing was causing the software to crash, and > justify the removal of the flag with "ohhh, it's really really > dangerous!". > > The fact that removing the flag has stopped the crashes does not fix > the underlying problem. It only hides the most visible symptom of the > problem. > > Also, anyone can claim "ohhhh, it's really really dangerous" about any > other compiler flag. > > --Stefan > > -- > Stefan Teleman > KDE e.V. > stefan.teleman at gmail.com > _______________________________________________ > kde-discuss mailing list > kde-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/kde-discuss > -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--`
