https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99122
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Like with diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index e32e69cd3ad..ac85be741b1 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -2775,7 +2775,12 @@ analyze_function_body (struct cgraph_node *node, bool early) (gimple_call_arg (stmt, i)); } } - + for (unsigned int i = 0; i < gimple_call_num_args (stmt); ++i) + if (TREE_CODE (gimple_call_arg (stmt, i)) == WITH_SIZE_EXPR) + { + edge->inline_failed = CIF_FUNCTION_NOT_INLINABLE; + break; + } es->call_stmt_size = this_size; es->call_stmt_time = this_time; es->loop_depth = bb_loop_depth (bb);