This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Author: iains
Date: Sat Jul  6 14:09:36 2019
New Revision: 273163

URL: https://gcc.gnu.org/viewcvs?rev=273163&root=gcc&view=rev
Log:
c++-coroutines - Mark routine suspension state in its frame.

For at least the purpose of integrity-checking in the library, it is useful
to be able to assert that a coroutine is suspended (when that is its expected
state).  We have allocated a field in the frame for this, which we are now
updating.

gcc/cp/

2019-07-06  Iain Sandoe  <iain@sandoe.co.uk>

	* coroutines.cc (build_actor_fn): Clear suspended status on entry
	set it on suspended returns.
	(build_destroy_fn): Comment change only.
	(register_local_var_uses): Rename suspension status field.
	(morph_fn_to_coro):  Likewise.  Reorder code that initialises the
	field.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]