mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 21:01:29 +08:00
re PR c/40172 (Revision 147596 breaks bootstrap)
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/40172 gcc/ * c.opt (Wlogical-op): Disabled by default. * c-opt (c_common_post_options): Do not enable Wlogical-op with Wextra. * doc/invoke.texi (Wlogical-op): Likewise. testsuite/ * gcc.dg/pr40172.c: Add -Wlogical-op to dg-options. From-SVN: r147717
This commit is contained in:
parent
5aefc6a0f0
commit
7bb2707483
@ -1,3 +1,11 @@
|
||||
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||
|
||||
PR c/40172
|
||||
* c.opt (Wlogical-op): Disabled by default.
|
||||
* c-opt (c_common_post_options): Do not enable Wlogical-op with
|
||||
Wextra.
|
||||
* doc/invoke.texi (Wlogical-op): Likewise.
|
||||
|
||||
2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
|
||||
|
@ -1073,8 +1073,6 @@ c_common_post_options (const char **pfilename)
|
||||
warn_override_init = extra_warnings;
|
||||
if (warn_ignored_qualifiers == -1)
|
||||
warn_ignored_qualifiers = extra_warnings;
|
||||
if (warn_logical_op == -1)
|
||||
warn_logical_op = extra_warnings;
|
||||
|
||||
/* -Wpointer-sign is disabled by default, but it is enabled if any
|
||||
of -Wall or -pedantic are given. */
|
||||
|
@ -285,7 +285,7 @@ C ObjC C++ ObjC++ Warning
|
||||
Warn about PCH files that are found but not used
|
||||
|
||||
Wlogical-op
|
||||
C ObjC C++ ObjC++ Var(warn_logical_op) Init(-1) Warning
|
||||
C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning
|
||||
Warn when a logical operator is suspiciously always evaluating to true or false
|
||||
|
||||
Wlong-long
|
||||
|
@ -2806,7 +2806,6 @@ name is still supported, but the newer name is more descriptive.)
|
||||
@gccoptlist{-Wclobbered @gol
|
||||
-Wempty-body @gol
|
||||
-Wignored-qualifiers @gol
|
||||
-Wlogical-op @gol
|
||||
-Wmissing-field-initializers @gol
|
||||
-Wmissing-parameter-type @r{(C only)} @gol
|
||||
-Wold-style-declaration @r{(C only)} @gol
|
||||
@ -3793,8 +3792,7 @@ programmer intended to use @code{strcmp}. This warning is enabled by
|
||||
@opindex Wno-logical-op
|
||||
Warn about suspicious uses of logical operators in expressions.
|
||||
This includes using logical operators in contexts where a
|
||||
bit-wise operator is likely to be expected. This warning is enabled by
|
||||
@option{-Wextra}.
|
||||
bit-wise operator is likely to be expected.
|
||||
|
||||
@item -Waggregate-return
|
||||
@opindex Waggregate-return
|
||||
|
@ -1,3 +1,8 @@
|
||||
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||
|
||||
PR c/40172
|
||||
* gcc.dg/pr40172.c: Add -Wlogical-op to dg-options.
|
||||
|
||||
2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gnat.dg/loop_optimization6.ad[sb]: New test.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* PR middle-end/40172 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wall -W -Werror" } */
|
||||
/* { dg-options "-Wall -W -Werror -Wlogical-op" } */
|
||||
|
||||
struct rtx_def;
|
||||
typedef struct rtx_def *rtx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user