https://gcc.gnu.org/g:9ffa92106859322807832054bb814addb7905578
commit 9ffa92106859322807832054bb814addb7905578 Author: Mikael Morin <mik...@gcc.gnu.org> Date: Thu Mar 6 11:01:40 2025 +0100 Affichage conditionnelle Diff: --- gcc/cgraphunit.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/cgraphunit.cc b/gcc/cgraphunit.cc index 4f793c763ad4..51f7171023e2 100644 --- a/gcc/cgraphunit.cc +++ b/gcc/cgraphunit.cc @@ -4257,8 +4257,15 @@ exec_context::execute (basic_block bb) edge exec_context::select_leaving_edge (basic_block bb, gimple *last_stmt) { + if (last_stmt != nullptr) + printer.begin_stmt (last_stmt); + if (last_stmt == nullptr || is_a <ggoto *> (last_stmt)) - return single_succ_edge (bb); + { + if (last_stmt != nullptr) + printer.end_stmt (last_stmt); + return single_succ_edge (bb); + } if (is_a <gcond *> (last_stmt)) { @@ -4291,6 +4298,8 @@ exec_context::select_leaving_edge (basic_block bb, gimple *last_stmt) selected = e; } + printer.end_stmt (last_stmt); + gcc_assert (selected != nullptr); return selected; }