Hi,

  I have added a release note for Function Multiversioning which is
checked into trunk. Please review.

Thanks,
-Sri.
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.56
diff -u -u -p -r1.56 changes.html
--- changes.html        12 Nov 2012 15:19:33 -0000      1.56
+++ changes.html        14 Nov 2012 01:15:15 -0000
@@ -297,6 +297,34 @@ B b(42); // OK
     }
     </pre>
     </li>
+    <li> Function Multiversioning Support with G++:
+    It is now possible to create multiple function versions each targeting a
+    specific processor and/or ISA.  Function versions have the same signature
+    but different target attributes.  For example, here is a program with
+    function versions:
+    <pre>
+    int foo(void)
+    {
+      return 1;
+    }
+
+    __attribute__ ((target ("sse4.2")))
+    int foo(void)
+    {
+      return 2;
+    }
+
+    int main (void)
+    {
+      int (*p) = &foo;
+      assert ((*p)() == foo());
+      return 0;
+    }
+    </pre>
+    Please refer to this
+    <a href="http://gcc.gnu.org/wiki/FunctionMultiVersioning";>wiki</a> for more
+    information.
+    </li>
   </ul>
 
 <h3 id="frv">FRV</h3>

Reply via email to