diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-02-19 20:02:28 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-02-19 20:02:28 +0000 |
commit | c116cd05fb0e993227162e466ba5f5093392e3e6 (patch) | |
tree | 1df9bafac89190d0399bae0615e62acab0097f1f /gcc/common.opt | |
parent | 459ffad3fd0486d686a14f45f59167b1e08c240a (diff) | |
download | gcc-c116cd05fb0e993227162e466ba5f5093392e3e6.zip gcc-c116cd05fb0e993227162e466ba5f5093392e3e6.tar.gz gcc-c116cd05fb0e993227162e466ba5f5093392e3e6.tar.bz2 |
c.opt (Waddress): New.
2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* c.opt (Waddress): New.
* common.opt (Walways-true): Delete.
(Wstring-literal-comparison): Delete.
* doc/invoke.texi (Warning Options): Delete -Walways-true and
-Wstring-literal-comparison. Add -Waddress.
(Waddress): New.
(Walways-true): Delete.
(Wstring-literal-comparison): Delete.
* doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
consistently instead of -Walways-true in example.
* c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
* c-typeck.c (parser_build_binary_op): Replace
-Wstring-literal-comparison and -Walways-true with -Waddress.
* c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
with -Waddress.
cp/
* typeck.c (build_binary_op): Replace -Wstring-literal-comparison
and -Walways-true with -Waddress.
* cvt.c (convert_to_void): Replace unconditional warning with
-Waddress.
testsuite/
* gcc.dg/20031012-1.c: Replace -Walways-true with -Waddress.
* gcc.dg/Walways-true-1.c: Likewise.
* gcc.dg/weak/weak-3.c: Likewise.
* gcc.dg/Werror-1.c: Likewise.
* gcc.dg/Werror-3.c: Likewise.
* gcc.dg/Werror-4.c: Likewise.
* gcc.dg/Werror-5.c: Likewise.
* gcc.dg/Werror-6.c: Likewise.
* gcc.dg/Werror-7.c: Likewise.
* gcc.dg/Werror-8.c: Likewise.
* gcc.dg/Werror-10.c: Likewise.
* gcc.dg/Werror-11.c: Likewise.
* gcc.dg/Werror-12.c: Likewise.
* g++.old-deja/g++.mike/warn8.C: Likewise.
* g++.dg/warn/Walways-true-1.C: Likewise.
* g++.dg/warn/Walways-true-2.C: Likewise.
* g++.dg/warn/noeffect8.C: Warn only with -Waddress.
* g++.dg/warn/Wstring-literal-comparison-1.C: Replace
-Wstring-literal-comparison with -Waddress.
* gcc.dg/Wstring-literal-comparison-4.c: Replace
-Wno-string-literal-comparison with -Wno-address.
From-SVN: r122136
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index c6a9557..1be3b74 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -74,10 +74,6 @@ Waggregate-return Common Var(warn_aggregate_return) Warning Warn about returning structures, unions or arrays -Walways-true -Common Var(warn_always_true) Warning -Warn about comparisons that always evaluate to true - Warray-bounds Common Var(warn_array_bounds) Warn if an array is accessed out of bounds @@ -166,10 +162,6 @@ Wstrict-overflow= Common Joined UInteger Warn about optimizations that assume that signed overflow is undefined -Wstring-literal-comparison -Common Var(warn_string_literal_comparison) Warning -Warn about comparisons to constant string literals - Wswitch Common Var(warn_switch) Warning Warn about enumerated switches, with no default, missing a case |