[gcc(refs/users/mikael/heads/refactor_descriptor_v05)] Affichage conditionnelle
Mikael Morin
mikael@gcc.gnu.org
Fri Jun 13 14:48:40 GMT 2025
https://gcc.gnu.org/g:fcebe837549f0412d633513f9d62bb6adf50e884
commit fcebe837549f0412d633513f9d62bb6adf50e884
Author: Mikael Morin <mikael@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;
}
More information about the Gcc-cvs
mailing list