coroutines: Bind label_decl of original function to actor function
authorJunMa <JunMa@linux.alibaba.com>
Mon, 20 Jan 2020 09:46:32 +0000 (17:46 +0800)
committerJunMa <JunMa@linux.alibaba.com>
Mon, 3 Feb 2020 01:24:27 +0000 (09:24 +0800)
commitc3ccce5b47f85d70127f5bb894bc5e83f8d2510e
tree6701e6af154d1320716a0c686629673169b52a70
parent75201e825d6685ecd293c9640ef4e5a46580db93
coroutines: Bind label_decl of original function to actor function

gcc/cp
    * coroutines.cc (transform_await_wrapper): Set actor funcion as
    new context of label_decl.
    (build_actor_fn): Fill new field of await_xform_data.

gcc/testsuite
    * g++.dg/coroutines/co-await-04-control-flow.C: Add label.
gcc/cp/ChangeLog
gcc/cp/coroutines.cc
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/torture/co-await-04-control-flow.C