r274620 - in /branches/c++-coroutines: ChangeLo...

iains@gcc.gnu.org iains@gcc.gnu.org
Sun Aug 18 14:09:00 GMT 2019


Author: iains
Date: Sun Aug 18 14:09:06 2019
New Revision: 274620

URL: https://gcc.gnu.org/viewcvs?rev=274620&root=gcc&view=rev
Log:
c++-coroutines - Walk statements instead of trees to register awaits.

This is preparation for handling the lifetime extension needed when
references are captured within a full expression.

2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>

	gcc/cp/
	* coroutines.cc (struct __susp_frame_data): Add a counter for awaits.
	(register_awaits): Account the handled await.
	(await_statement_walker): New, walk statements checking each for
	awaits.
	(morph_fn_to_coro): Use await_statement_walker instead of calling
	register_awaits directly.


Modified:
    branches/c++-coroutines/ChangeLog.coroutines
    branches/c++-coroutines/gcc/cp/coroutines.cc



More information about the Gcc-cvs mailing list