r189218 - Simplify now that -O4 just maps to -O3 and -O is an alias of -O2.

Chris Lattner clattner at apple.com
Fri Sep 6 09:51:53 PDT 2013


On Sep 6, 2013, at 9:48 AM, Sylvestre Ledru <sylvestre at debian.org> wrote:

> On 03/09/2013 19:07, Rafael EspĂ­ndola wrote:
>>> Ok, makes sense.  Those uses can use an explicit -O1 though :-)
>> 
>> Sure.
>> 
>>>> I haven't seen -O being used in wild, so I OK with keeping it mapping to -O2.
>>> 
>>> I'd be curious to know how many files in a linux distro are built with -O.  I wouldn't be surprised if it is  5-10%.
>> 
>> Sylvestre might know how to answer that :-)
> I run some statistics on some rebuild results that I have.
> 
> You were pessimist ;)
> On 10320 binary packages, we have 269 packages using this option (2.6 %).
> 
> 
> I detailed the results here:
> http://sylvestre.ledru.info/blog/2013/09/06/about-optimization-flags-in-software

Wow, it's scary how many build with -O0 and -O1 explicitly!

-Chris



More information about the cfe-commits mailing list