public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Add -Wmultistatement-macros
@ 2017-06-26 14:54 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2017-06-26 14:54 UTC (permalink / raw)
  To: GCC Patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-26 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 14:54 [wwwdocs] Add -Wmultistatement-macros Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).