aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-09-03 20:37:33 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-09-03 20:37:33 +0000
commitd2e4feca24b91fd1a3e4e42f8ef82b19d0df5853 (patch)
tree7638c44eeb3ea28703d95109e766eea7f8aa9770
parent88f7d6fb23723894389f6560d47fc52fd7a8a1a8 (diff)
downloadgcc-d2e4feca24b91fd1a3e4e42f8ef82b19d0df5853.zip
gcc-d2e4feca24b91fd1a3e4e42f8ef82b19d0df5853.tar.gz
gcc-d2e4feca24b91fd1a3e4e42f8ef82b19d0df5853.tar.bz2
invoke.texi: Document that -Wlogical-not-parentheses is enabled by -Wall.
* doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled by -Wall. c-family/ * c.opt (Wlogical-not-parentheses): Enable by -Wall. From-SVN: r214893
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c.opt2
-rw-r--r--gcc/doc/invoke.texi2
4 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ce38dba..9ae222b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-03 Marek Polacek <polacek@redhat.com>
+
+ * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
+ by -Wall.
+
2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
* doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index fdcaa0d..43ae53b 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-03 Marek Polacek <polacek@redhat.com>
+
+ * c.opt (Wlogical-not-parentheses): Enable by -Wall.
+
2014-09-02 Jakub Jelinek <jakub@redhat.com>
Balaji V. Iyer <balaji.v.iyer@intel.com>
Igor Zamyatin <igor.zamyatin@intel.com>
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 210a099..643f256 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -519,7 +519,7 @@ C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning
Warn when a logical operator is suspiciously always evaluating to true or false
Wlogical-not-parentheses
-C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning
+C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
Warn when logical not is used on the left hand side operand of a comparison
Wlong-long
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d15d4a9..55e6d56 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4800,6 +4800,8 @@ parentheses:
if ((!a) > 1) @{ @dots{} @}
@end smallexample
+This warning is enabled by @option{-Wall}.
+
@item -Waggregate-return
@opindex Waggregate-return
@opindex Wno-aggregate-return