[vlc-devel] vlc: svn commit r21540 (pdherbemont)
Pierre d'Herbemont
pdherbemont at free.fr
Tue Aug 28 16:17:52 CEST 2007
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?
Pierre.
More information about the vlc-devel
mailing list