[vlc-devel] vlc: svn commit r21540 (pdherbemont)

Damien Fouilleul damien.fouilleul at laposte.net
Tue Aug 28 17:38:06 CEST 2007

Pierre d'Herbemont wrote:
> On 28 août 07, at 15:49, Damien Fouilleul wrote:
>> only -O0 is guaranteed to give a debug environment free of  
>> optimizations
>> quirks, -O2 will also give your problems when debugging.
> That makes senses to use O0. However, O3 is also the optimization  
> option that turn on finline-functions and frename-registers, which  
> makes debugging hard with gdb. O2 is fine here, and will be in most  
> cases. It is generally admitted that O2 just works.
> Anyway, I don't mind having a custom patch hanging in my configure.  
> But don't you feel that --enable-debug should lower optimization by  
> default? If so I'll patch configure to disable optimization by  
> default if --enable-debug is on.
> Alternatively we could override O3 parameters when debugging, so that  
> gcc can produce debug-able binaries.
> What are your thoughts on that?
To be honest with you the only time I mix -g and -O is for released 
software only, so that you can get a decent backtrace when you get a 
crash but without impeding code performance too much.
For real debbugging (i.e unit testing and the like) you're better off 
without any optimizations.

> Pierre.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list