diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-04-09 07:49:41 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-04-09 07:49:41 +0000 |
commit | dc8d273907ba88cf11180a2fdf79f086feeb44f6 (patch) | |
tree | d3948de1f31acd50882bef52bb6d0f63b19293a6 /libssp | |
parent | d3a9eea2c0e65e0f03c249bab8aa3fa56149dfe0 (diff) | |
download | gcc-dc8d273907ba88cf11180a2fdf79f086feeb44f6.zip gcc-dc8d273907ba88cf11180a2fdf79f086feeb44f6.tar.gz gcc-dc8d273907ba88cf11180a2fdf79f086feeb44f6.tar.bz2 |
re PR c++/28584 (Cast to pointer from integer of different size)
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.
From-SVN: r158150
Diffstat (limited to 'libssp')
0 files changed, 0 insertions, 0 deletions