public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Document new Wlogical-op warning in gcc-4.5/changes.html
@ 2009-10-15 16:02 Manuel López-Ibáñez
  2009-10-15 19:11 ` Gerald Pfeifer
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel López-Ibáñez @ 2009-10-15 16:02 UTC (permalink / raw)
  To: Gcc Patch List; +Cc: Gerald Pfeifer

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

OK to commit?

2009-10-15 Manuel López-Ibáñez  <manu@gcc.gnu.org>

  * htdocs/gcc-4.5/changes.html: Document new Wlogical-op warning.

[-- Attachment #2: wlogical-op-wwwdocs.diff --]
[-- Type: text/plain, Size: 816 bytes --]

Index: htdocs/gcc-4.5/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.5/changes.html,v
retrieving revision 1.40
diff -u -r1.40 changes.html
--- htdocs/gcc-4.5/changes.html	15 Oct 2009 13:27:12 -0000	1.40
+++ htdocs/gcc-4.5/changes.html	15 Oct 2009 15:54:05 -0000
@@ -93,6 +93,10 @@
     reach that point.  It may be used after <code>asm</code>
     statements that terminate by transferring control elsewhere, and
     in other places that are known to be unreachable.</li>
+    <li>The <code>-Wlogical-op</code> option now warns for logical
+    expressions such as <code>(c == 1 && c == 2)</code> and <code>(c
+    != 1 || c != 2)</code>, which are likely to be mistakes. This
+    option is disabled by default.</li>
   </ul>
 
 <h3>C</h3>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [wwwdocs] Document new Wlogical-op warning in  gcc-4.5/changes.html
  2009-10-15 16:02 [wwwdocs] Document new Wlogical-op warning in gcc-4.5/changes.html Manuel López-Ibáñez
@ 2009-10-15 19:11 ` Gerald Pfeifer
  0 siblings, 0 replies; 2+ messages in thread
From: Gerald Pfeifer @ 2009-10-15 19:11 UTC (permalink / raw)
  To: Manuel López-Ibáñez; +Cc: gcc-patches

[-- Attachment #1: Type: TEXT/PLAIN, Size: 328 bytes --]

On Thu, 15 Oct 2009, Manuel López-Ibáñez wrote:
> 2009-10-15 Manuel López-Ibáñez  <manu@gcc.gnu.org>
> 
>   * htdocs/gcc-4.5/changes.html: Document new Wlogical-op warning.

Looks good, thanks Manuel.

For the record, these new warnings have found a dozen or so bugs in
Wine, for example.  Very useful.

Gerald

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-15 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-15 16:02 [wwwdocs] Document new Wlogical-op warning in gcc-4.5/changes.html Manuel López-Ibáñez
2009-10-15 19:11 ` Gerald Pfeifer

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).