Add __attribute__((malloc) to allocator and remove unused code
commit687ee9a7c3a01184c88e7b8a052223c8562058d5
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 May 2018 15:35:12 +0000 (14 15:35 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 May 2018 15:35:12 +0000 (14 15:35 +0000)
tree37ca4de6c9508ea29a32bf5952d32305d240cb6c
parent62ca663518dba30d642f0ce207c794a46211cd89
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260230 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/valarray_array.h