This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add -Og optimization level - optimize for compile-time/debugging experience
On Tue, 18 Sep 2012, Ian Lance Taylor wrote:
> On Tue, Sep 18, 2012 at 4:23 AM, Richard Guenther <rguenther@suse.de> 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).
>
> This needs an entry in gcc-4.8/changes.html, of course.
Like the following.
Richard.
2012-09-19 Richard Guenther <rguenther@suse.de>
* gcc-4.8/changes.html: Document -Og.
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.28
diff -u -r1.28 changes.html
--- changes.html 6 Sep 2012 03:42:45 -0000 1.28
+++ changes.html 19 Sep 2012 09:27:38 -0000
@@ -41,6 +41,11 @@
<h2>General Optimizer Improvements (and Changes)</h2>
<ul>
+ <li>A new general optimization level, <code>-Og</code>, has been
+ introduced. It addresses the need for fast compilation and a
+ superior debugging experience while providing a reasonable level
+ of runtime performance. Overall experience for development should
+ be better than the default optimization level <code>-O0</code>.
<li>A new option <code>-ftree-partial-pre</code> was added to control
the partial redundancy elimination (PRE) optimization.
This option is enabled by default at the <code>-O3</code> optimization