OSDN Git Service

2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Feb 2010 21:32:06 +0000 (21:32 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Feb 2010 21:32:06 +0000 (21:32 +0000)
commit8296fdaa5585af861f72b1fe21d9c49449868e77
tree80eb6bcb9ce16ee2cd887d93ee782806145b1486
parent5b5632f73a3e4722ea361d9c11d9e53efd76606c
2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c++/35669
* c.opt (Wconversion-null): New option.
* doc/invoke.texi (Wconversion-null): Document.

cp/
* call.c (conversion_null_warnings): Replace -Wconversion with
-Wconversion-null.
* cvt.c (build_expr_type_conversion): Likewise.

testsuite/
* g++.dg/warn/Wconversion2.C: Replace -Wconversion with
-Wconversion-null.
* g++.dg/warn/Wconversion-null.C: New test.
* g++.old-deja/g++.other/null1.C: Move to...
* g++.dg/warn/Wconversion-null-2.C: ... here. Remove -Wconversion.

libstdc++-v3/
* testsuite/18_support/headers/cstddef/macros.cc: Add
-Wno-conversion-null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156928 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/c.opt
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cvt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wconversion-null-2.C [moved from gcc/testsuite/g++.old-deja/g++.other/null1.C with 97% similarity]
gcc/testsuite/g++.dg/warn/Wconversion-null.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wconversion2.C
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc