new2.cc (operator delete[]): Use operator delete, don't assume implementation.
* new2.cc (operator delete[]): Use operator delete, don't assume implementation. From-SVN: r31687
This commit is contained in:
parent
02fed91d67
commit
97119bb744
@ -1,3 +1,8 @@
|
||||
2000-01-29 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* new2.cc (operator delete[]): Use operator delete, don't assume
|
||||
implementation.
|
||||
|
||||
2000-01-29 Nathan Sidwell <sidwell@codesourcery.com>
|
||||
|
||||
* class.c (build_vtbl_initializer): Add argument to
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Boilerplate support routines for -*- C++ -*- dynamic memory management.
|
||||
// Copyright (C) 1997, 1998, 1999 Free Software Foundation
|
||||
// Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
|
||||
|
||||
// This file is part of GNU CC.
|
||||
|
||||
@ -58,8 +58,7 @@ WEAK (void operator delete (void *ptr) throw ())
|
||||
#ifdef L_op_vdel
|
||||
WEAK (void operator delete[] (void *ptr) throw ())
|
||||
{
|
||||
if (ptr)
|
||||
free (ptr);
|
||||
::operator delete (ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -74,7 +73,6 @@ WEAK (void operator delete (void *ptr, const std::nothrow_t&) throw ())
|
||||
#ifdef L_op_vdelnt
|
||||
WEAK (void operator delete[] (void *ptr, const std::nothrow_t&) throw ())
|
||||
{
|
||||
if (ptr)
|
||||
free (ptr);
|
||||
::operator delete (ptr);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user