On Fri, Jun 02, 2017 at 12:44:35AM -0400, Ehsan Akhgari wrote: > On 06/01/2017 08:51 PM, Mike Hommey wrote: > > Hi, > > > > For some reason, the default when building on Linux had stayed -Os. I > > just landed a change[1] to this default to now use -O2 instead (on > > autoland at the moment). This is going to give better performance to > > local builds (although that might make the build itself take a little > > longer). > > > > (Note the default is -O3 on OSX) > Out of curiosity, any reason why not use -O3 here too?
Because -O3 is known to have introduced problems with GCC due to the extra optimizations, and would need more careful testing before switching to it. (PGO does use -O3, though, but that only applies to hot code, so we can't really make conclusions from that). -O2 is more of a no-brainer, although it /can/ introduce bugs too. (Note that the js engine is built with -O3 in any case) Mike _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

