[MPlayer-dev-eng] Re: dsputil_mmx.c: -O2

Loren Merritt lorenm at u.washington.edu
Tue Sep 19 05:42:49 CEST 2006


On Tue, 19 Sep 2006, Carl Eugen Hoyos wrote:

> Corey Hickey <bugfood-ml <at> fatooh.org> writes:
>
>> For gcc 4.1, the manual says instead:
>>      Optimize yet more.  -O3 turns on all optimizations specified by -O2
>>      and also turns on the -finline-functions and -frename-registers
>>      options.
>
> Not that it matters: Where did you find this?
>
> Wherever I looked, it said: ...and also turns on the -finline-functions,
> -funswitch-loops and -fgcse-after-reload options.

>From http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html

4.1.1: -finline-functions -funswitch-loops -fgcse-after-reload
4.0.3: -finline-functions -funswitch-loops -fgcse-after-reload
3.4.6: -finline-functions -frename-registers -fweb -funswitch-loops
3.3.6: -finline-functions -frename-registers
3.2.3: -finline-functions -frename-registers
3.1.1: -finline-functions -frename-registers
3.0.4: -finline-functions -frename-registers
2.95.3: -finline-functions

... however, I agree with Corey that "-O2 -finline-functions 
-funswitch-loops -fgcse-after-reload" is in fact not equivalent to "-O3".

--Loren Merritt



More information about the MPlayer-dev-eng mailing list