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)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:53:15 +0000 (09:53 +0900)
commit9d7cbe29e9ca43581c180f0d49aa9d2b9f1b0f81
treefe59b3883e07a2ae47778925bfa59df60abaff12
parent6e77d116a6d6c2beaf98bcafab72490779b79e2a
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/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wpointer-to-int-cast-2.c [deleted file]
gcc/testsuite/gcc.dg/Wpointer-to-int-cast-3.c [deleted file]