r158150 - in /trunk/gcc: ChangeLog c.opt cp/Cha...
manu@gcc.gnu.org
manu@gcc.gnu.org
Fri Apr 9 07:49:00 GMT 2010
Author: manu
Date: Fri Apr 9 07:49:41 2010
New Revision: 158150
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158150
Log:
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/28584
* c.opt (Wint-to-pointer-cast): Available in C++.
* doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
cp/
* typeck.c (cp_build_c_cast): Warn for casting integer to larger
pointer type.
testsuite/
* gcc.dg/Wint-to-pointer-cast-1.c: Move to...
* c-c++-common/Wint-to-pointer-cast-1.c: ... here.
* gcc.dg/Wint-to-pointer-cast-2.c: Move to...
* c-c++-common/Wint-to-pointer-cast-2.c: ... here.
* gcc.dg/Wint-to-pointer-cast-3.c: Move to...
* c-c++-common/Wint-to-pointer-cast-3.c: ... here. Update.
* g++.old-deja/g++.mike/warn1.C: Add -Wno-int-to-pointer-cast.
* g++.dg/other/increment1.C: Likewise.
Added:
trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-1.c (props changed)
- copied unchanged from r158134, trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c
trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-2.c (props changed)
- copied unchanged from r158134, trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c
trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c (contents, props changed)
- copied, changed from r158134, trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c
Removed:
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c.opt
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/increment1.C
trunk/gcc/testsuite/g++.old-deja/g++.mike/warn1.C
Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-1.c
('svn:mergeinfo' added)
Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-2.c
('svn:mergeinfo' added)
Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
('svn:mergeinfo' added)
More information about the Gcc-cvs
mailing list