aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-07-31 23:05:49 +0100
committerIain Sandoe <iain@sandoe.co.uk>2024-08-05 19:27:33 +0100
commit86512292270860bbe1dd33cef1ebe041d597462c (patch)
treed7dfa82df75e5e78962d86e34c7437d0e6158b15 /gcc/cp/parser.cc
parentb0e2ccef0b3c469d5d242766328a24a94990f83b (diff)
downloadgcc-86512292270860bbe1dd33cef1ebe041d597462c.zip
gcc-86512292270860bbe1dd33cef1ebe041d597462c.tar.gz
gcc-86512292270860bbe1dd33cef1ebe041d597462c.tar.bz2
c++, coroutines: Simplify separation of the user function body and ramp.
We need to separate the original user-authored function body from the definition of the ramp function (which is what is called instead). The function body tree is either in DECL_SAVED_TREE or the first operand of current_eh_spec_block (for functions with an EH spec). This version simplifies the process by extracting the second case directly instead of inspecting the DECL_SAVED_TREE trees to discover it. gcc/cp/ChangeLog: * coroutines.cc (split_coroutine_body_from_ramp): New. (morph_fn_to_coro): Use split_coroutine_body_from_ramp(). * cp-tree.h (use_eh_spec_block): New. * decl.cc (use_eh_spec_block): Make non-static. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions