aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2024-11-17 15:48:29 +0100
committerJan Hubicka <hubicka@ucw.cz>2024-11-17 15:48:29 +0100
commitbd59f2eeacd41b91e4e79b32dda83cc60d499e25 (patch)
treec5e85e004c815e423f64553ab3d38e92b43e4996
parent696bd86260e268d5603fb227e276834ebd0e01b4 (diff)
downloadgcc-bd59f2eeacd41b91e4e79b32dda83cc60d499e25.zip
gcc-bd59f2eeacd41b91e4e79b32dda83cc60d499e25.tar.gz
gcc-bd59f2eeacd41b91e4e79b32dda83cc60d499e25.tar.bz2
Mark asm statements as necessary in ipa-fnsummary
I forgot to mark asm statements as necessary in ipa-fnsummary. This should mask failure of gcc.dg/guality/pr36728-2.c where the patch enabled cloning which breaks debug info. gcc/ChangeLog: * ipa-fnsummary.cc (find_necessary_statements): ASM statements are necessary.
-rw-r--r--gcc/ipa-fnsummary.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-fnsummary.cc b/gcc/ipa-fnsummary.cc
index 87e08da..e6bdc00 100644
--- a/gcc/ipa-fnsummary.cc
+++ b/gcc/ipa-fnsummary.cc
@@ -2804,7 +2804,8 @@ find_necessary_statements (struct cgraph_node *node)
|| (is_ctrl_stmt (stmt)
&& (gimple_code (stmt) != GIMPLE_COND
|| !guards_builtin_unreachable (bb, cache)))
- || gimple_store_p (stmt))
+ || gimple_store_p (stmt)
+ || gimple_code (stmt) == GIMPLE_ASM)
mark_stmt_necessary (stmt, worklist);
}
}