]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/libsupc++/vec.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / libsupc++ / vec.cc
index f9afd39df9b544e1b9d54deb1345dde1f2bbb20e..315acb842d3d87c8c6fd158df90f1cbe78017861 100644 (file)
@@ -1,6 +1,6 @@
 // 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.
 //
@@ -65,10 +65,10 @@ namespace __cxxabiv1
                             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;
     }
   }