This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs, PATCH, committed] Document function specific options


I committed the following patch to document the new ability to add function
specific optimization options and on the x86, target options.

[wwwwdocs/htdocs/gcc-4.4]
2008-07-23  Michael Meissner  <gnu@the-meissners.org>

	* changes.html: Document new optimize and option attributes and
	pragmas.

--- htdocs/gcc-4.4/changes.html.~1.17.~	2008-07-12 04:21:14.000000000 -0400
+++ htdocs/gcc-4.4/changes.html	2008-07-23 06:19:25.000000000 -0400
@@ -87,11 +87,31 @@
 
 <h2>General Optimizer Improvements</h2>
 
+  <ul>
+    <li>A new command-line switch <code>-ftree-switch-conversion</code> has
+      been added.  This new pass turns simple initializations of scalar
+      variables in switch statements into initializations from a static array,
+      given that all the values are known at compile time and the ratio between
+      the new array size and the original switch branches does not exceed 
+      the parameter <code>--param switch-conversion-max-branch-ratio</code> 
+      (default is eight).  </li>
+  </ul>
 
 <h2>New Languages and Language specific improvements</h2>
 
 <h3>C family</h3>
 
+  <ul>
+    <li>A new <code>optimize</code> attribute was added to allow programmers to
+    change the optimization level and particular optimization options for an
+    individual function.  You can also change the optimization options via the
+    <code>GCC optimize</code> pragma for functions defined after the pragma.  The
+    <code>cold</code> attribute now turns on the <code>-Os</code> optimization
+    option and <code>hot</code> attribute turns on the <code>-O3</code>
+    optimization option.</li>
+
+  </ul>
+
 <h3>C++</h3>
   <ul>
     <li><a href="cxx0x_status.html">Improved experimental support for the upcoming
@@ -141,6 +161,8 @@
     <li>GCC can now utilize the SVML library for vectorizing calls to
 	a set of C99 functions if <code>-mveclibabi=svml</code> is specified
 	and you link to an SVML ABI compatible library.</li>
+    <li>A new <code>option</code> attribute was added to allow programmers to change the target options like <code>-msse2</code> or <code>-march=k8</code> for an individual function.  You can also change the target options via the <code>GCC option</code> pragma for functions defined after the pragma.</li>
+
   </ul>
 
 <h3>MIPS</h3>

-- 
Michael Meissner
email: gnu@the-meissners.org
http://www.the-meissners.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]