diff mbox

[wwwdocs] Update changes.html

Message ID 20150525082136.GV27320@redhat.com
State New
Headers show

Commit Message

Marek Polacek May 25, 2015, 8:21 a.m. UTC
I've committed the following update to reflect the recent addition.


	Marek
diff mbox

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.7
diff -u -r1.7 changes.html
--- changes.html	14 May 2015 22:07:28 -0000	1.7
+++ changes.html	25 May 2015 08:13:52 -0000
@@ -32,6 +32,14 @@ 
 
 <h3 id="c-family">C family</h3>
   <ul>
+    <li>The C and C++ compilers now support attributes on enumerators.  For instance,
+	it is now possible to mark enumerators as deprecated:
+<blockquote><pre>
+enum {
+  newval,
+  oldval __attribute__ ((deprecated ("too old")))
+};
+</pre></blockquote></li>
     <li>A new command-line option <code>-Wshift-negative-value</code> has been
 	added for the C and C++ compilers, which warns about left shifting
 	a negative value.</li>