[wwwdocs] Some news into gcc-4.6

Jan Hubicka hubicka@ucw.cz
Tue Jun 22 15:31:00 GMT 2010


> > +         <li>Improved auto-detection of <code>const</code> and <code>pure</code>
> > +             functions.  Newly <code>noreturn</code> functions are auto-detected.
> > +             <p><code>-fsuggest-attribute</code> flag is available to make compiler
> 
> I think the option is <a
> href="http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options"><code>-Wsuggest-attribute=[const|pure|nothrow]</code></a>
> 
> BTW, the description in the manual does not mention Wsuggest-attribute=nothrow.

It is because nothrow is not implemented yet.  I plan to update patch for that.

Here s updated patch.  I am not sure about HTML way of making linebreak ;)

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.18
diff -u -r1.18 changes.html
--- changes.html	13 Jun 2010 12:44:28 -0000	1.18
+++ changes.html	22 Jun 2010 15:01:28 -0000
@@ -43,6 +43,34 @@
       with options that can affect standards compliance but result in
       better optimized code.  For example <code>-Ofast</code> enables
       <code>-ffast-math</code>.</li>
+      <li>Interprocedural optimizations improvements</li>
+      <ul>
+	  <li>Interprocedural framework was re-tuned for link time
+	      optimization.</li>
+	  <li>Improved auto-detection of <code>const</code> and <code>pure</code>
+	      functions.  Newly; <code>noreturn</code> functions are auto-detected.
+	      <p><a href="http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options"><code>-Wsuggest-attribute=[const|pure|noreturn]</code></a>
+	      flag is available to make compiler to inform users when adding
+	      attributes into headers might improve code generation.</p></li>
+	  <li>Inlining heuristics were improved:
+	      <ul>
+		 <li>A number of problems with large compilation units was fixed.</li>
+		 <li>Inlining of callbacks is now more aggressive.</li>
+		 <li>Virtual methods are inlined caller is inlined
+		     and devirtualization is possible then.</li>
+	      </ul>
+	  <li>
+	</ul>
+  </ul>
+
+<h2>Compile time and memory usage improvements</h2>
+  <ul>
+      <li>Datastructures used by dataflow framework in GCC were reorganized
+	  for better memory usage and more cache locality.  Compile
+	  time is improved especially on units with large functions (possibly
+	  resulting from a lot of inlining) not fitting in processor cache.
+	  Compile time of GCC C compiler binary with link time optimization
+	  has reduced by over 10% (benchmarked on x86-64 target).</li>
   </ul>
 
 <h2>New Languages and Language specific improvements</h2>



More information about the Gcc-patches mailing list