Commit ee26baf4 by Iain Sandoe

coroutines: Rename the coroutines cpp builtin.

The current standard draft (n4861) amends the cpp builtin for
coroutines to '__cpp_impl_coroutine', no other change.

gcc/c-family/ChangeLog:

2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>

	* c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
	define, per n4861.

gcc/testsuite/ChangeLog:

2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>

	* g++.dg/coroutines/coro-pre-proc.C: Update coroutines builtin
	define, per n4861.
	* g++.dg/coroutines/coro.h: Likewise.

libstdc++-v3/ChangeLog:

2020-04-13  Iain Sandoe  <iain@sandoe.co.uk>

	* include/std/coroutine: Update coroutines builtin define,
	per n4861.
parent 2dd4ceac
2020-04-13 Iain Sandoe <iain@sandoe.co.uk>
* c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin
define, per n4861.
2020-04-02 Richard Biener <rguenther@suse.de> 2020-04-02 Richard Biener <rguenther@suse.de>
PR c/94392 PR c/94392
......
...@@ -1012,7 +1012,7 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -1012,7 +1012,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_concepts=201507L"); cpp_define (pfile, "__cpp_concepts=201507L");
} }
if (flag_coroutines) if (flag_coroutines)
cpp_define (pfile, "__cpp_coroutines=201902L"); /* n4835, C++20 CD */ cpp_define (pfile, "__cpp_impl_coroutine=201902L"); /* n4861, DIS */
if (flag_tm) if (flag_tm)
/* Use a value smaller than the 201505 specified in /* Use a value smaller than the 201505 specified in
the TS, since we don't yet support atomic_cancel. */ the TS, since we don't yet support atomic_cancel. */
......
2020-04-13 Iain Sandoe <iain@sandoe.co.uk> 2020-04-13 Iain Sandoe <iain@sandoe.co.uk>
* g++.dg/coroutines/coro-pre-proc.C: Update coroutines builtin
define, per n4861.
* g++.dg/coroutines/coro.h: Likewise.
2020-04-13 Iain Sandoe <iain@sandoe.co.uk>
* gcc.dg/darwin-version-1.c: Use -mmacosx-version-min= 10.8 * gcc.dg/darwin-version-1.c: Use -mmacosx-version-min= 10.8
for system versions 10.14 and 10.15. for system versions 10.14 and 10.15.
......
// Only need to compile this, with the default options from the .exp. // Only need to compile this, with the default options from the .exp.
#ifndef __cpp_coroutines #ifndef __cpp_impl_coroutine
#error "coroutines should engaged." #error "coroutines should engaged."
#endif #endif
#if __cpp_coroutines != 201902L #if __cpp_impl_coroutine != 201902L
#error "coroutine version out of sync." #error "coroutine version out of sync."
#endif #endif
...@@ -29,7 +29,7 @@ namespace coro = std::experimental; ...@@ -29,7 +29,7 @@ namespace coro = std::experimental;
// Fragments (with short-cuts) to mimic enough of the library header to // Fragments (with short-cuts) to mimic enough of the library header to
// make some progress. // make some progress.
# if __cpp_coroutines # if __cpp_impl_coroutine
namespace std { namespace std {
inline namespace __n4835 { inline namespace __n4835 {
......
2020-04-13 Iain Sandoe <iain@sandoe.co.uk>
* include/std/coroutine: Update coroutines builtin define,
per n4861.
2020-04-09 Jonathan Wakely <jwakely@redhat.com> 2020-04-09 Jonathan Wakely <jwakely@redhat.com>
* libsupc++/compare (compare_three_way): Fix noexcept-specifier. * libsupc++/compare (compare_three_way): Fix noexcept-specifier.
......
...@@ -54,7 +54,7 @@ namespace std _GLIBCXX_VISIBILITY (default) ...@@ -54,7 +54,7 @@ namespace std _GLIBCXX_VISIBILITY (default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cpp_coroutines #if __cpp_impl_coroutine
inline namespace __n4835 { inline namespace __n4835 {
// 17.12.2 coroutine traits // 17.12.2 coroutine traits
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment