OSDN Git Service

2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 07:49:41 +0000 (07:49 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 07:49:41 +0000 (07:49 +0000)
commitbbecaa2292e2fe07d9107e0342854b1bde57ac97
treed3948de1f31acd50882bef52bb6d0f63b19293a6
parente97ac7c06c53487872b7d9d11148725317ef5588
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158150 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c.opt
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-to-pointer-cast-1.c [moved from gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c with 100% similarity]
gcc/testsuite/c-c++-common/Wint-to-pointer-cast-2.c [moved from gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c with 100% similarity]
gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c [moved from gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c with 55% similarity]
gcc/testsuite/g++.dg/other/increment1.C
gcc/testsuite/g++.old-deja/g++.mike/warn1.C