mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 08:13:58 +08:00
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:
parent
8c8dec01e2
commit
520abf6930
@ -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):
|
||||
|
@ -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,7 +83,9 @@ 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)
|
||||
{
|
||||
base += 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user