gcc/libstdc++-v3/include
Jonathan Wakely 265d3e1a4e libstdc++: Install <coroutine> header for freestanding [PR103726]
The standard says that <coroutine> should be present for freestanding.
That was intentionally left out of the initial implementation, but can
be done without much trouble. The header should be moved to libsupc++ at
some point in stage 1.

The standard also says that <coroutine> defines a std::hash
specialization, which was missing from our implementation. That's a
problem for freestanding (see LWG 3653) so only do that for hosted.

We can use concepts to constrain the __coroutine_traits_impl base class
when compiled with concepts enabled. In a pure C++20 implementation we
would not need that base class at all and could just use a constrained
partial specialization of coroutine_traits. But the absence of the
__coroutine_traits_impl<R, void> base would create an ABI difference
between the non-standard C++14/C++17 support for coroutines and the same
code compiled as C++20. If we drop support for <coroutine> pre-C++20 we
should revisit this.

libstdc++-v3/ChangeLog:

	PR libstdc++/103726
	* include/Makefile.am: Install <coroutine> for freestanding.
	* include/Makefile.in: Regenerate.
	* include/std/coroutine: Adjust headers and preprocessor
	conditions.
	(__coroutine_traits_impl): Use concepts when available.
	[_GLIBCXX_HOSTED] (hash<coroutine_handle>): Define.
2022-01-11 13:28:46 +00:00
..
backward Update copyright years. 2022-01-03 10:42:10 +01:00
bits libstdc++: Make std::variant work with Clang in C++20 mode [PR103891] 2022-01-11 13:22:35 +00:00
c Update copyright years. 2022-01-03 10:42:10 +01:00
c_compatibility Update copyright years. 2022-01-03 10:42:10 +01:00
c_global Update copyright years. 2022-01-03 10:42:10 +01:00
c_std Update copyright years. 2022-01-03 10:42:10 +01:00
debug Update copyright years. 2022-01-03 10:42:10 +01:00
decimal Update copyright years. 2022-01-03 10:42:10 +01:00
experimental Update copyright years. 2022-01-03 10:42:10 +01:00
ext Update copyright years. 2022-01-03 10:42:10 +01:00
parallel Update copyright years. 2022-01-03 10:42:10 +01:00
precompiled Update copyright years. 2022-01-03 10:42:10 +01:00
pstl libstdc++: Fix up parallel_backend_serial.h [PR97549] 2021-02-23 09:28:14 +01:00
std libstdc++: Install <coroutine> header for freestanding [PR103726] 2022-01-11 13:28:46 +00:00
tr1 Update copyright years. 2022-01-03 10:42:10 +01:00
tr2 Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am libstdc++: Install <coroutine> header for freestanding [PR103726] 2022-01-11 13:28:46 +00:00
Makefile.in libstdc++: Install <coroutine> header for freestanding [PR103726] 2022-01-11 13:28:46 +00:00