r266453 - in /branches/c++-coroutines: ChangeLo...
iains@gcc.gnu.org
iains@gcc.gnu.org
Mon Nov 26 11:45:00 GMT 2018
Author: iains
Date: Mon Nov 26 11:45:43 2018
New Revision: 266453
URL: https://gcc.gnu.org/viewcvs?rev=266453&root=gcc&view=rev
Log:
c++-coroutines - Initial (limited) expansion of co_await.
This is only enough to cover the initial trivial co_return example.
2018-11-26 Iain Sandoe <iain@sandoe.co.uk>
* gcc/cp/coroutines.cc (co_await_expander): New callback.
(expand_co_awaits): New. (morph_fn_to_coro): Rename phase_name
to resume_idx_name, and likewise phase to resume_idx. Add
initial suspend and final suspend handles to the coroutine
frame. Remove the inline building of initial and final susp
point vars. Add a reference to the relevant awaiter to each
co_await tree. Remove unused init and final awaiter destructors.
Expand co_await trees.
Modified:
branches/c++-coroutines/ChangeLog.coroutines
branches/c++-coroutines/gcc/cp/coroutines.cc
More information about the Gcc-cvs
mailing list