* libsupc++/new: Declare sized deletes.
authorJason Merrill <jason@redhat.com>
Tue, 3 Nov 2015 16:43:54 +0000 (11:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Nov 2015 16:43:54 +0000 (11:43 -0500)
From-SVN: r229713

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new

index 4f36a2ae3bd78c22e7d15756464db316ca722ff1..abd4482ca952617b803a63713d9fc4972b8b62fb 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-03  Jason Merrill  <jason@redhat.com>
+
+       * libsupc++/new: Declare sized deletes.
+
 2015-11-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
 
        Make the default constructors of tuple and pair conditionally explicit.
index bd50b6c846565afd97a3c4d13e104134662cbf6a..0f6a05a9b713c0e3efe6f2f57714271c84ecbfc9 100644 (file)
@@ -116,6 +116,12 @@ void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
   __attribute__((__externally_visible__));
 void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
   __attribute__((__externally_visible__));
+#if __cpp_sized_deallocation
+void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
+  __attribute__((__externally_visible__));
+void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
+  __attribute__((__externally_visible__));
+#endif
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
   __attribute__((__externally_visible__));
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
@@ -124,6 +130,12 @@ void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
   __attribute__((__externally_visible__));
 void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
   __attribute__((__externally_visible__));
+#if __cpp_sized_deallocation
+void operator delete(void*, std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
+  __attribute__((__externally_visible__));
+void operator delete[](void*, std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
+  __attribute__((__externally_visible__));
+#endif
 
 // Default placement versions of operator new.
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT