]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++, coroutines: Clean up the ramp cleanups.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 12 May 2025 19:38:48 +0000 (20:38 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 29 Jul 2025 15:03:50 +0000 (16:03 +0100)
commitae9ccc700bda405b387cd0a6318b00138027f388
tree80a8cd6d4c176c27a1e8f749915b0b80e4c73e0b
parentdf99f2de811719acb993ef23c6851163c5a3b9d4
c++, coroutines: Clean up the ramp cleanups.

This replaces the cleanup try-catch block in the ramp with a series of
eh-only cleanup statements.

Includes
 typo fixes from 83aa09e90487b52c1772eeffc4af577ee70536f1
 dead code removal from 7bba8d48ea556a03bdc4e9076740b83d3db6599e

gcc/cp/ChangeLog:

* coroutines.cc (analyze_fn_parms): No longer
create a parameter copy guard var.
(cp_coroutine_transform::build_ramp_function): Replace ramp
cleanup try-catch block with eh-only cleanup statements.
* coroutines.h (struct param_info): Remove the
entry for the parameter copy destructor guard.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit 18df4a10bc96946401218019ec566d867238b3e4)
gcc/cp/coroutines.cc
gcc/cp/coroutines.h