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

iains@gcc.gnu.org iains@gcc.gnu.org
Sun Nov 24 16:17:00 GMT 2019


Author: iains
Date: Sun Nov 24 16:17:53 2019
New Revision: 278657

URL: https://gcc.gnu.org/viewcvs?rev=278657&root=gcc&view=rev
Log:
c++-coroutines - Address review comments, use global trees for identifiers.

This moves the local identifiers for traits, handle and promise
type to global trees.

2019-11-24  Iain Sandoe  <iain@sandoe.co.uk>

	gcc/cp/
	* coroutines.cc (find_coro_traits_template_decl): Use global
	identifier.
	(find_coro_handle_type): Likewise.
	(find_promise_type): Likewise.
	* cp-tree.h (enum cp_tree_index): Add indices for the coroutine
	global identifiers.
	(coro_traits_identifier): New.
	(coro_handle_identifier): New.
	(coro_promise_type_identifier): New.
	* decl.c (initialize_predefined_identifiers): Initialize global
	identifiers for coroutines.


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