aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-20 21:32:06 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-20 21:32:06 +0000
commit17251338deebd6575ef2a9e2c99c3f976561dc93 (patch)
tree80eb6bcb9ce16ee2cd887d93ee782806145b1486 /libstdc++-v3
parentc387e0676eb6949dfc49681d6ac1b09c3e11d2ca (diff)
downloadgcc-17251338deebd6575ef2a9e2c99c3f976561dc93.zip
gcc-17251338deebd6575ef2a9e2c99c3f976561dc93.tar.gz
gcc-17251338deebd6575ef2a9e2c99c3f976561dc93.tar.bz2
re PR c++/35669 (NULL (__null) not considered different from 0 with C++)
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. From-SVN: r156928
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc1
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index f89d8bc..cf7aa9e 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR c++/35669
+ * testsuite/18_support/headers/cstddef/macros.cc: Add
+ -Wno-conversion-null.
+
2010-02-19 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1_impl/array (array): Add pointer and const_pointer
diff --git a/libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc b/libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc
index 1329e58..c17e86f 100644
--- a/libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc
+++ b/libstdc++-v3/testsuite/18_support/headers/cstddef/macros.cc
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-options "-Wno-conversion-null" }
// 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009