On Sep  5, 2012, Richard Guenther <rguent...@suse.de> wrote:

> Yes, the goal is definitely to avoid the jumping back and forth
> on source lines you can see when debugging optimized programs.

Hmm...  If that's the goal, how about adding to the mix the Statement
Frontier Notes proposal I advanced in some GCC Summit?  Its goal is
precisely to mark user-relevant viewpoints for a debugger to stop so as
at to get a consistent and progressive view of the computation.

Sure enough, there are optimizations that don't make much room for that,
and so it would make sense for -Og to disable those, to get excellent
results, rather than just -gO0d ones ;-)

> Any comments on the implementation details btw?

Not really, sorry.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

Reply via email to