new_opvnt.cc revision 169692
1102644Snectar// Boilerplate support routines for -*- C++ -*- dynamic memory management. 255682Smarkm 3142403Snectar// Copyright (C) 1997, 1998, 1999, 2000, 2004 Free Software Foundation 4233294Sstas// 5142403Snectar// This file is part of GCC. 6127808Snectar// 7127808Snectar// GCC is free software; you can redistribute it and/or modify 8127808Snectar// it under the terms of the GNU General Public License as published by 9102644Snectar// the Free Software Foundation; either version 2, or (at your option) 10127808Snectar// any later version. 11102644Snectar// 12127808Snectar// GCC is distributed in the hope that it will be useful, 13127808Snectar// but WITHOUT ANY WARRANTY; without even the implied warranty of 14127808Snectar// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15127808Snectar// GNU General Public License for more details. 16127808Snectar// 17127808Snectar// You should have received a copy of the GNU General Public License 18127808Snectar// along with GCC; see the file COPYING. If not, write to 19127808Snectar// the Free Software Foundation, 51 Franklin Street, Fifth Floor, 20127808Snectar// Boston, MA 02110-1301, USA. 21127808Snectar// 22127808Snectar// As a special exception, you may use this file as part of a free software 23127808Snectar// library without restriction. Specifically, if other files instantiate 24127808Snectar// templates or use macros or inline functions from this file, or you compile 25127808Snectar// this file and link it with other files to produce an executable, this 26127808Snectar// file does not by itself cause the resulting executable to be covered by 27127808Snectar// the GNU General Public License. This exception does not however 28127808Snectar// invalidate any other reasons why the executable file might be covered by 29127808Snectar// the GNU General Public License. 30127808Snectar 31127808Snectar#include <bits/c++config.h> 32127808Snectar#include "new" 33127808Snectar 34127808Snectar_GLIBCXX_WEAK_DEFINITION void* 35127808Snectaroperator new[] (std::size_t sz, const std::nothrow_t& nothrow) throw() 36127808Snectar{ 3755682Smarkm return ::operator new(sz, nothrow); 3855682Smarkm} 3955682Smarkm