aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-10-15 12:16:12 -0600
committerTom Tromey <tom@tromey.com>2023-11-29 14:29:44 -0700
commit553b78748fd19cd5832989f3c2817c6ced4f503b (patch)
tree8afcace08042278677ec2b4a4dcc02ea217e2ac1 /gdbsupport
parentb096524827460d2a3a7e7d08ae6c2f41a1388bab (diff)
downloadgdb-553b78748fd19cd5832989f3c2817c6ced4f503b.zip
gdb-553b78748fd19cd5832989f3c2817c6ced4f503b.tar.gz
gdb-553b78748fd19cd5832989f3c2817c6ced4f503b.tar.bz2
Rely on C++17 <new> in new-op.cc
gdbsupport/new-op.cc has a comment about relying on the C++-17 <new> header. This patch implements the suggestion. Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/new-op.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdbsupport/new-op.cc b/gdbsupport/new-op.cc
index 6a056ef..181fc49 100644
--- a/gdbsupport/new-op.cc
+++ b/gdbsupport/new-op.cc
@@ -27,11 +27,6 @@
#include "host-defs.h"
#include <new>
-/* These are declared in <new> 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