// New abi Support -*- C++ -*-
-// Copyright (C) 2000-2012 Free Software Foundation, Inc.
+// Copyright (C) 2000-2023 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
std::size_t padding_size)
{
if (element_size && element_count > std::size_t(-1) / element_size)
- throw std::bad_alloc();
+ _GLIBCXX_THROW_OR_ABORT(std::bad_alloc());
std::size_t size = element_count * element_size;
if (size + padding_size < size)
- throw std::bad_alloc();
+ _GLIBCXX_THROW_OR_ABORT(std::bad_alloc());
return size + padding_size;
}
}