mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 05:44:15 +08:00
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.
This commit is contained in:
parent
696bd86260
commit
bd59f2eeac
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user