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

iains@gcc.gnu.org iains@gcc.gnu.org
Wed Jan 23 20:12:00 GMT 2019


Author: iains
Date: Wed Jan 23 20:12:32 2019
New Revision: 268199

URL: https://gcc.gnu.org/viewcvs?rev=268199&root=gcc&view=rev
Log:
c++-coroutines - expose resume and destroy functions to finish_function.

We need to emit these, and therefore need to set cfun and
current_function_decl to something meaningful plus do the poplevel
operations etc.  This is better handled at a higher level.

2019-01-23  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc/cp/coroutines.cc (morph_fn_to_coro): Adjust function interface
	to allow return of generated function bodies.  Declare resumer and
	destroyer functions.
	* gcc/cp/cp-tree.h (morph_fn_to_coro): Adjust interface.
	* gcc/cp/decl.c (finish_function): Allow for the morph routine
	to return function decls for the resume and destroy functions.


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



More information about the Gcc-cvs mailing list