On Wed, 19 Sep 2012, Eric Botcazou wrote:

> > This adds -Og as optimization level targeted at the devel-compile-debug
> > cycle (formerly mostly tied to -O0 due to debug issues with even -O1).
> > 
> > Discussion on g...@gcc.gnu.org at least shows interest in this, so this
> > is a formal patch submission with a request for comments on the
> > implementation (not necessarily on what passes are enabled and why).
> 
> There are a fair number of places in the compiler where things are done to 
> help debugging (as opposed to not done like optimizations) if !optimize.
> I guess we want to enable (some of) them with -Og, in which case it would 
> probably be convenient to have a shortcut for !optimize || optimize_debug.

Which means that -O0 should also set optimize_debug to 1?  -O0 is
then !optimize && optimize_debug and -Og is optimize == 1 && 
optimize_debug.

Richard.

Reply via email to