aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-06-03 23:50:29 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-06-03 23:50:29 +0000
commit7eea775d6416ddf8f36c36da151139c0804cfd45 (patch)
tree6d9798b218a8b67b1f9da9cd56d5db4a8289f71a /gcc
parent445877a9da79aad47e0eb895dd0270fda8a29b85 (diff)
downloadgcc-7eea775d6416ddf8f36c36da151139c0804cfd45.zip
gcc-7eea775d6416ddf8f36c36da151139c0804cfd45.tar.gz
gcc-7eea775d6416ddf8f36c36da151139c0804cfd45.tar.bz2
re PR libstdc++/44410 (Revision 160231 caused new libstdc++ test failures)
2010-06-03 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/44410 * g++.old-deja/g++.jason/new.C: Qualify size_t with std::. * g++.old-deja/g++.other/delete3.C: Likewise. * g++.old-deja/g++.other/new.C: Likewise. * g++.old-deja/g++.law/operators27.C: Likewise. * g++.old-deja/g++.mike/p755.C: Likewise. * g++.dg/eh/new1.C: Likewise. * g++.dg/init/new5.C: Likewise. From-SVN: r160239
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/g++.dg/eh/new1.C2
-rw-r--r--gcc/testsuite/g++.dg/init/new5.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/new.C6
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/operators27.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p755.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/delete3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/new.C4
8 files changed, 22 insertions, 11 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 53bd0bd..99b1152 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2010-06-03 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR libstdc++/44410
+ * g++.old-deja/g++.jason/new.C: Qualify size_t with std::.
+ * g++.old-deja/g++.other/delete3.C: Likewise.
+ * g++.old-deja/g++.other/new.C: Likewise.
+ * g++.old-deja/g++.law/operators27.C: Likewise.
+ * g++.old-deja/g++.mike/p755.C: Likewise.
+ * g++.dg/eh/new1.C: Likewise.
+ * g++.dg/init/new5.C: Likewise.
+
2010-06-03 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/unpack_bounds_1.f90: Remove execute property.
diff --git a/gcc/testsuite/g++.dg/eh/new1.C b/gcc/testsuite/g++.dg/eh/new1.C
index 4c5c684..0f86fcc 100644
--- a/gcc/testsuite/g++.dg/eh/new1.C
+++ b/gcc/testsuite/g++.dg/eh/new1.C
@@ -9,7 +9,7 @@
int ret = 1;
void *ptr;
-void * operator new[] (size_t s) throw (std::bad_alloc)
+void * operator new[] (std::size_t s) throw (std::bad_alloc)
{
ptr = operator new (s);
return ptr;
diff --git a/gcc/testsuite/g++.dg/init/new5.C b/gcc/testsuite/g++.dg/init/new5.C
index 3a5981e0..0d99f93 100644
--- a/gcc/testsuite/g++.dg/init/new5.C
+++ b/gcc/testsuite/g++.dg/init/new5.C
@@ -2,8 +2,8 @@
#include <new>
-void * operator new[](size_t, std::nothrow_t const &) throw()
-{ return NULL; }
+void * operator new[](std::size_t, std::nothrow_t const &) throw()
+{ return 0; }
struct X {
struct Inner { ~Inner() {} };
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/new.C b/gcc/testsuite/g++.old-deja/g++.jason/new.C
index d5260ce..905739b 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/new.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/new.C
@@ -3,10 +3,10 @@
#include <new>
extern "C" int printf (const char *, ...);
-extern "C" void *malloc (size_t);
-size_t s;
+extern "C" void *malloc (std::size_t);
+std::size_t s;
-void * operator new (size_t siz) throw (std::bad_alloc) {
+void * operator new (std::size_t siz) throw (std::bad_alloc) {
if (s == 0)
s = siz;
else
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators27.C b/gcc/testsuite/g++.old-deja/g++.law/operators27.C
index c284a2a..5fb3a74 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/operators27.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/operators27.C
@@ -12,7 +12,7 @@ int FLAG=0;
extern "C" int printf( const char *, ...);
-void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
+void * operator new(std::size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
class K {
private:
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p755.C b/gcc/testsuite/g++.old-deja/g++.mike/p755.C
index bf4302b..28eeefa 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p755.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p755.C
@@ -6,7 +6,7 @@
extern "C" void _exit(int);
-void* operator new(size_t sz) throw (std::bad_alloc) {
+void* operator new(std::size_t sz) throw (std::bad_alloc) {
void* p = 0;
_exit(0);
return p;
diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete3.C b/gcc/testsuite/g++.old-deja/g++.other/delete3.C
index 469d638..9c6c58e 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/delete3.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/delete3.C
@@ -16,7 +16,7 @@ map<T, U>::~map ()
struct SomeClass { };
-void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
+void* operator new(std::size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
{
return operator new(numBytes, std::nothrow);
}
diff --git a/gcc/testsuite/g++.old-deja/g++.other/new.C b/gcc/testsuite/g++.old-deja/g++.other/new.C
index c3d77c6..3c3494e 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/new.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/new.C
@@ -3,12 +3,12 @@
#include <new>
inline void *
-operator new(size_t alloc_sz, const char *fname, unsigned lineno)
+operator new(std::size_t alloc_sz, const char *fname, unsigned lineno)
{
return ::operator new (alloc_sz);
}
inline void *
-operator new[](size_t alloc_sz, const char *fname, unsigned lineno)
+operator new[](std::size_t alloc_sz, const char *fname, unsigned lineno)
{
return ::operator new[] (alloc_sz);
}