new(nothrow) is malloc-like
2018-08-24 Marc Glisse <marc.glisse@inria.fr> PR libstdc++/86822 * libsupc++/new (operator new(size_t, nothrow_t), operator new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow_t), operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribute. From-SVN: r263841
This commit is contained in:
parent
1d29bb0408
commit
6eac0600c4
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2018-08-24 Marc Glisse <marc.glisse@inria.fr>
|
||||
|
||||
PR libstdc++/86822
|
||||
* libsupc++/new (operator new(size_t, nothrow_t), operator
|
||||
new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow_t),
|
||||
operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribute.
|
||||
|
||||
2018-08-24 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* include/debug/deque (std::__debug::deque): Declare.
|
||||
|
|
|
@ -137,9 +137,9 @@ 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__));
|
||||
__attribute__((__externally_visible__, __malloc__));
|
||||
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
|
||||
__attribute__((__externally_visible__));
|
||||
__attribute__((__externally_visible__, __malloc__));
|
||||
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
|
||||
|
@ -148,7 +148,7 @@ void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
|
|||
void* operator new(std::size_t, std::align_val_t)
|
||||
__attribute__((__externally_visible__));
|
||||
void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__));
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__, __malloc__));
|
||||
void operator delete(void*, std::align_val_t)
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__));
|
||||
void operator delete(void*, std::align_val_t, const std::nothrow_t&)
|
||||
|
@ -156,7 +156,7 @@ void operator delete(void*, std::align_val_t, const std::nothrow_t&)
|
|||
void* operator new[](std::size_t, std::align_val_t)
|
||||
__attribute__((__externally_visible__));
|
||||
void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__));
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__, __malloc__));
|
||||
void operator delete[](void*, std::align_val_t)
|
||||
_GLIBCXX_USE_NOEXCEPT __attribute__((__externally_visible__));
|
||||
void operator delete[](void*, std::align_val_t, const std::nothrow_t&)
|
||||
|
|
Loading…
Add table
Reference in a new issue