diff options
Diffstat (limited to 'winsup/cygwin/libstdcxx_wrapper.cc')
-rw-r--r-- | winsup/cygwin/libstdcxx_wrapper.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/winsup/cygwin/libstdcxx_wrapper.cc b/winsup/cygwin/libstdcxx_wrapper.cc index 6cd4c75..2c41b37 100644 --- a/winsup/cygwin/libstdcxx_wrapper.cc +++ b/winsup/cygwin/libstdcxx_wrapper.cc @@ -32,67 +32,67 @@ details. */ #define MANGLED_ZNAX_NOTHROW_T "___wrap__ZnajRKSt9nothrow_t" #endif -extern void *operator new(std::size_t sz) throw (std::bad_alloc) +extern void *operator new(std::size_t sz) noexcept (false) __asm__ (MANGLED_ZNWX); -extern void *operator new[](std::size_t sz) throw (std::bad_alloc) +extern void *operator new[](std::size_t sz) noexcept (false) __asm__ (MANGLED_ZNAX); -extern void operator delete(void *p) throw() +extern void operator delete(void *p) noexcept (true) __asm__ (_SYMSTR (__wrap__ZdlPv)); -extern void operator delete[](void *p) throw() +extern void operator delete[](void *p) noexcept (true) __asm__ (_SYMSTR (__wrap__ZdaPv)); -extern void *operator new(std::size_t sz, const std::nothrow_t &nt) throw() +extern void *operator new(std::size_t sz, const std::nothrow_t &nt) noexcept (true) __asm__ (MANGLED_ZNWX_NOTHROW_T); -extern void *operator new[](std::size_t sz, const std::nothrow_t &nt) throw() +extern void *operator new[](std::size_t sz, const std::nothrow_t &nt) noexcept (true) __asm__ (MANGLED_ZNAX_NOTHROW_T); -extern void operator delete(void *p, const std::nothrow_t &nt) throw() +extern void operator delete(void *p, const std::nothrow_t &nt) noexcept (true) __asm__ (_SYMSTR (__wrap__ZdlPvRKSt9nothrow_t)); -extern void operator delete[](void *p, const std::nothrow_t &nt) throw() +extern void operator delete[](void *p, const std::nothrow_t &nt) noexcept (true) __asm__ (_SYMSTR (__wrap__ZdaPvRKSt9nothrow_t)); extern void * -operator new(std::size_t sz) throw (std::bad_alloc) +operator new(std::size_t sz) noexcept (false) { return (*user_data->cxx_malloc->oper_new) (sz); } extern void * -operator new[](std::size_t sz) throw (std::bad_alloc) +operator new[](std::size_t sz) noexcept (false) { return (*user_data->cxx_malloc->oper_new__) (sz); } extern void -operator delete(void *p) throw() +operator delete(void *p) noexcept (true) { (*user_data->cxx_malloc->oper_delete) (p); } extern void -operator delete[](void *p) throw() +operator delete[](void *p) noexcept (true) { (*user_data->cxx_malloc->oper_delete__) (p); } extern void * -operator new(std::size_t sz, const std::nothrow_t &nt) throw() +operator new(std::size_t sz, const std::nothrow_t &nt) noexcept (true) { return (*user_data->cxx_malloc->oper_new_nt) (sz, nt); } extern void * -operator new[](std::size_t sz, const std::nothrow_t &nt) throw() +operator new[](std::size_t sz, const std::nothrow_t &nt) noexcept (true) { return (*user_data->cxx_malloc->oper_new___nt) (sz, nt); } extern void -operator delete(void *p, const std::nothrow_t &nt) throw() +operator delete(void *p, const std::nothrow_t &nt) noexcept (true) { (*user_data->cxx_malloc->oper_delete_nt) (p, nt); } extern void -operator delete[](void *p, const std::nothrow_t &nt) throw() +operator delete[](void *p, const std::nothrow_t &nt) noexcept (true) { (*user_data->cxx_malloc->oper_delete___nt) (p, nt); } |