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] Add -Wmultistatement-macros


I've committed the following to reflect the recent addition.

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

	Marek


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