Add __attribute__((malloc) to allocator and remove unused code
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 May 2018 15:35:12 +0000 (16:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 May 2018 15:35:12 +0000 (16:35 +0100)
commitcd2f262b2fa4292a39b97ab590b46e79d349817c
tree37ca4de6c9508ea29a32bf5952d32305d240cb6c
parent6bfbebb063100f6ab845a8456fc7fec99361da80
Add __attribute__((malloc) to allocator and remove unused code

* include/bits/valarray_array.h (__valarray_get_memory): Remove.
(__valarray_get_storage): Call operator new directly. Remove ignored
top-level restrict qualifier and add malloc attribute instead.
(_Array<_Tp>::_Array(size_t)): Remove unused constructor.

From-SVN: r260230
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/valarray_array.h