Remove array_allocator extension, deprecated since 4.9.0

Programming / Compilers / GCC - redi [138bc75d-0d04-0410-961f-82ee72b054a4] - 13 May 2019 10:49 EDT

This type is not a conforming allocator, because it cannot be reliably rebound to allocate for a different type. The result of the rebind transformation still uses the same underlying std::tr1::array array, which may not be correctly aligned or even have elements the right size for the value_type of the rebound allocator.

It has been deprecated for several years and should now be removed.

- doc/xml/manual/allocator.xml: Remove documentation for array_allocator.
- doc/xml/manual/evolution.xml: Document array_allocator removal.
- doc/xml/manual/using.xml: Remove header from documentation.
- include/Makefile.am: Remove header.
- include/Makefile.in: Regenerate.
- include/ext/array_allocator.h: Remove.
- include/precompiled/extc++.h: Do not include removed header.
- testsuite/ext/array_allocator/1.cc: Remove.
- testsuite/ext/array_allocator/2.cc: Remove.
- testsuite/ext/array_allocator/26875.cc: Remove.
- testsuite/ext/array_allocator/3.cc: Remove.
- testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
- testsuite/ext/array_allocator/check_delete.cc: Remove.
- testsuite/ext/array_allocator/check_new.cc: Remove.
- testsuite/ext/array_allocator/variadic_construct.cc: Remove.
- testsuite/ext/headers.cc: Do not include removed header.

ca8ead92a5c Remove array_allocator extension, deprecated since 4.9.0
libstdc++-v3/ChangeLog | 21 +++
libstdc++-v3/doc/xml/manual/allocator.xml | 17 --
libstdc++-v3/doc/xml/manual/evolution.xml | 4 +
libstdc++-v3/doc/xml/manual/using.xml | 1 -
libstdc++-v3/include/Makefile.am | 1 -
libstdc++-v3/include/Makefile.in | 1 -
libstdc++-v3/include/ext/array_allocator.h | 182 ---------------------
libstdc++-v3/include/precompiled/extc++.h | 1 -
libstdc++-v3/testsuite/ext/array_allocator/1.cc | 57 -------
libstdc++-v3/testsuite/ext/array_allocator/2.cc | 63 -------
.../testsuite/ext/array_allocator/26875.cc | 47 ------
libstdc++-v3/testsuite/ext/array_allocator/3.cc | 58 -------
.../ext/array_allocator/check_allocate_max_size.cc | 32 ----
.../ext/array_allocator/check_deallocate_null.cc | 33 ----
.../testsuite/ext/array_allocator/check_delete.cc | 37 -----
.../testsuite/ext/array_allocator/check_new.cc | 37 -----
.../ext/array_allocator/variadic_construct.cc | 49 ------
libstdc++-v3/testsuite/ext/headers.cc | 1 -
18 files changed, 25 insertions(+), 617 deletions(-)

Upstream: gcc.gnu.org


  • Share