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

Damien Fouilleul damien.fouilleul at laposte.net
Tue Aug 28 15:49:48 CEST 2007


only -O0 is guaranteed to give a debug environment free of optimizations 
quirks, -O2 will also give your problems when debugging.

Pierre d'Herbemont wrote:
> Damien,
>
> I think I wasn't clear with the commit. The point is to get -O2 when  
> enabling debug by default. (Not -O0).
>
> Having -O3 when debugging is a bit too much, but -O0 is certainly not  
> enough. So we need some balancing. To me having --enable-debug  
> defaulting -O2 seems like the way to go. We probably want to have -- 
> enable-debug --enable-optimizations=speed or something like that to  
> turn back on -O3.
>
> An alternative would be to have --enable-optimization=debug, that  
> would turn on -O2.
>
> Keep me posted,
>
> Pierre.
>
> On 28 août 07, at 10:52, Damien Fouilleul wrote:
>
>   
>> For those who didn't follow my commits regarding optimizations, you  
>> can
>> now specify the following on configure:
>>
>> (omited), --enable-optimizations, --enable-optimizations=speed:  
>> turn on
>> optimizations for faster speed (basically -03)
>> --enable-optimizations=size: turn on optimizations for smaller size
>> (basically -Os)
>> --enable-optimizations=no, --disable-optimizations: disable
>> optimizations (basically -O0)
>>
>> Damien
>>
>> Damien Fouilleul wrote:
>>     
>>> i'v already fixed that one, use --disable-optimizations with -- 
>>> debug to
>>> get the behaviour you wanted, please revert !
>>>
>>> Pierre d'Herbemont wrote:
>>>
>>>       
>>>> This one may be controversial.
>>>>
>>>> I do use printf to debug most of the time. But generally O3 isn't
>>>> suited for (gdb) debugging. (here finline-function mess up gdb
>>>> backtrace sometimes).
>>>>
>>>> Feel free to discuss or revert,
>>>>
>>>> Pierre.
>>>>
>>>> On 28 août 07, at 05:30, Subversion daemon wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> r21540 | pdherbemont | 2007-08-28 05:30:28 +0200 (Tue, 28 Aug 2007)
>>>>> | 2 lines
>>>>> Changed paths:
>>>>>    M /trunk/configure.ac
>>>>>
>>>>> configure.ac: Don't use -O3 if debug is enabled.
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> http://trac.videolan.org/vlc/changeset/21540
>>>>>>
>>>>>>
>>>>>>             
>>>>> _______________________________________________
>>>>> vlc-devel mailing list
>>>>> To unsubscribe or modify your subscription options:
>>>>> http://mailman.videolan.org/listinfo/vlc-devel
>>>>>
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> vlc-devel mailing list
>>>> To unsubscribe or modify your subscription options:
>>>> http://mailman.videolan.org/listinfo/vlc-devel
>>>>
>>>>
>>>>         
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> http://mailman.videolan.org/listinfo/vlc-devel
>>>
>>>       
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>     
>
> _______________________________________________
> 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