2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
commitede5a481889ac50f9e9034e534dbcaccd589d724
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Feb 2007 20:02:28 +0000 (19 20:02 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Feb 2007 20:02:28 +0000 (19 20:02 +0000)
tree1df9bafac89190d0399bae0615e62acab0097f1f
parent2debe3a3c02a6bda9a188be8fcd163c7913efe1b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122136 138bc75d-0d04-0410-961f-82ee72b054a4
36 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-opts.c
gcc/c-typeck.c
gcc/c.opt
gcc/common.opt
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/typeck.c
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Walways-true-1.C
gcc/testsuite/g++.dg/warn/Walways-true-2.C
gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-1.C
gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-4.C
gcc/testsuite/g++.dg/warn/noeffect8.C
gcc/testsuite/g++.old-deja/g++.mike/warn8.C
gcc/testsuite/gcc.dg/20031012-1.c
gcc/testsuite/gcc.dg/Walways-true-1.c
gcc/testsuite/gcc.dg/Walways-true-2.c
gcc/testsuite/gcc.dg/Werror-1.c
gcc/testsuite/gcc.dg/Werror-10.c
gcc/testsuite/gcc.dg/Werror-11.c
gcc/testsuite/gcc.dg/Werror-12.c
gcc/testsuite/gcc.dg/Werror-3.c
gcc/testsuite/gcc.dg/Werror-4.c
gcc/testsuite/gcc.dg/Werror-5.c
gcc/testsuite/gcc.dg/Werror-6.c
gcc/testsuite/gcc.dg/Werror-7.c
gcc/testsuite/gcc.dg/Werror-8.c
gcc/testsuite/gcc.dg/Werror-9.c
gcc/testsuite/gcc.dg/Wstring-literal-comparison-1.c
gcc/testsuite/gcc.dg/Wstring-literal-comparison-4.c
gcc/testsuite/gcc.dg/warn-addr-cmp.c
gcc/testsuite/gcc.dg/weak/weak-3.c