gcc/libstdc++-v3/config
Jonathan Wakely ea2329d170 Define monotonic_buffer_resource members out-of-line
Move the allocation logic into libstdc++.so so that it can be changed
without worrying about inlined code in existing binaries.

Leave do_allocate inline so that calls to it can be devirtualized, and
only the slow path needs to call into the library.

	* config/abi/pre/gnu.ver: Export monotonic_buffer_resource members.
	* include/std/memory_resource (monotonic_buffer_resource::release):
	Call _M_release_buffers to free buffers.
	(monotonic_buffer_resource::do_allocate): Call _M_new_buffer to
	allocate a new buffer from upstream.
	(monotonic_buffer_resource::_M_new_buffer): Declare.
	(monotonic_buffer_resource::_M_release_buffers): Declare.
	(monotonic_buffer_resource::_Chunk): Replace definition with
	declaration as opaque type.
	* src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk):
	Define.
	(monotonic_buffer_resource::_M_new_buffer): Define.
	(monotonic_buffer_resource::_M_release_buffers): Define.

From-SVN: r263354
2018-08-07 12:31:16 +01:00
..
abi Define monotonic_buffer_resource members out-of-line 2018-08-07 12:31:16 +01:00
allocator Update copyright years. 2018-01-03 11:03:58 +01:00
cpu Update copyright years. 2018-01-03 11:03:58 +01:00
io Add support for opening file streams from wide character strings 2018-05-21 18:18:35 +01:00
locale Update copyright years. 2018-01-03 11:03:58 +01:00
os Update copyright years. 2018-01-03 11:03:58 +01:00