From: Tom Tromey Date: Sun, 15 Oct 2023 18:16:12 +0000 (-0600) Subject: Rely on C++17 in new-op.cc X-Git-Tag: binutils-2_42~781 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=553b78748fd19cd5832989f3c2817c6ced4f503b;p=thirdparty%2Fbinutils-gdb.git Rely on C++17 in new-op.cc gdbsupport/new-op.cc has a comment about relying on the C++-17 header. This patch implements the suggestion. Approved-By: Pedro Alves --- diff --git a/gdbsupport/new-op.cc b/gdbsupport/new-op.cc index 6a056ef508f..181fc4957fa 100644 --- a/gdbsupport/new-op.cc +++ b/gdbsupport/new-op.cc @@ -27,11 +27,6 @@ #include "host-defs.h" #include -/* These are declared in starting C++14. Add these here to enable - compilation using C++11. */ -extern void operator delete (void *p, std::size_t) noexcept; -extern void operator delete[] (void *p, std::size_t) noexcept; - /* Override operator new / operator new[], in order to internal_error on allocation failure and thus query the user for abort/core dump/continue, just like xmalloc does. We don't do this from a