vec.cc (__cxa_vec_new2): If the allocator returns NULL, return NULL.

2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
	NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
	(__cxa_vec_new3): Likewise.

From-SVN: r71273
This commit is contained in:
Jeffrey D. Oldham 2003-09-10 15:41:48 +00:00 committed by Jeffrey D. Oldham
parent 8c8dec01e2
commit 520abf6930
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
* libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
(__cxa_vec_new3): Likewise.
2003-09-10 Petur Runolfsson <peturr02@ru.is>
* include/bits/fstream.tcc (basic_filebuf::seekoff):

View File

@ -1,6 +1,6 @@
// New abi Support -*- C++ -*-
// Copyright (C) 2000, 2001 Free Software Foundation, Inc.
// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@ -83,6 +83,8 @@ namespace __cxxabiv1
{
std::size_t size = element_count * element_size + padding_size;
char *base = static_cast <char *> (alloc (size));
if (!base)
return base;
if (padding_size)
{
@ -116,6 +118,8 @@ namespace __cxxabiv1
{
std::size_t size = element_count * element_size + padding_size;
char *base = static_cast<char *>(alloc (size));
if (!base)
return base;
if (padding_size)
{