diff mbox

[wwwdocs] Add -Wmultistatement-macros

Message ID 20170626145432.GF4341@redhat.com
State New
Headers show

Commit Message

Marek Polacek June 26, 2017, 2:54 p.m. UTC
I've committed the following to reflect the recent addition.


	Marek
diff mbox

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v
retrieving revision 1.5
diff -u -r1.5 changes.html
--- changes.html	20 Jun 2017 10:19:11 -0000	1.5
+++ changes.html	26 Jun 2017 14:53:28 -0000
@@ -50,6 +50,14 @@ 
 
 <h3 id="c-family">C family</h3>
 <ul>
+    <li>New command-line options have been added for the C and C++ compilers:
+      <ul>
+	<li><code>-Wmultistatement-macros</code> warns about unsafe macros
+	expanding to multiple statements used as a body of a clause such
+	as <code>if</code>, <code>else</code>, <code>while</code>,
+	<code>switch</code>, or <code>for</code>.</li>
+      </ul>
+    </li>
     <li><code>-fno-strict-overflow</code> is now mapped to
      <code>-fwrapv</code> and signed integer overflow is now undefined by
      default at all optimization levels.  Using