This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r122673 - in /branches/gcc-4_2-branch/gcc: Chan...


Author: manu
Date: Wed Mar  7 20:24:37 2007
New Revision: 122673

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122673
Log:
2007-03-07  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.
	(build_binary_op): Likewise.
	* c-common.c (c_common_truthvalue_conversion): Likewise.
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/warn-addr-cmp.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-9.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/noeffect8.C: Warn only with -Waddress.
	* gcc.dg/Wstring-literal-comparison-1.C: Replace
	-Wstring-literal-comparison with -Waddress.
	* gcc.dg/Wstring-literal-comparison-4.c: Likewise.
	* g++.dg/warn/Wstring-literal-comparison-1.C: Likewise.
	* g++.dg/warn/Wstring-literal-comparison-4.c: Likewise.

Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/c-common.c
    branches/gcc-4_2-branch/gcc/c-opts.c
    branches/gcc-4_2-branch/gcc/c-typeck.c
    branches/gcc-4_2-branch/gcc/c.opt
    branches/gcc-4_2-branch/gcc/common.opt
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/cvt.c
    branches/gcc-4_2-branch/gcc/cp/typeck.c
    branches/gcc-4_2-branch/gcc/doc/extend.texi
    branches/gcc-4_2-branch/gcc/doc/invoke.texi
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-1.C
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-4.C
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/warn/noeffect8.C
    branches/gcc-4_2-branch/gcc/testsuite/g++.old-deja/g++.mike/warn8.C
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/20031012-1.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-1.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-10.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-11.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-12.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-3.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-4.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-5.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-6.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-7.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-8.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Werror-9.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Wstring-literal-comparison-1.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Wstring-literal-comparison-4.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/warn-addr-cmp.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/weak/weak-3.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]