https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119614
--- Comment #45 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'd say certainly --- gcc/ipa-prop.cc.jj 2025-04-16 09:30:52.762558540 +0200 +++ gcc/ipa-prop.cc 2025-04-16 11:17:43.716154125 +0200 @@ -5518,8 +5518,8 @@ ipa_prop_write_jump_functions (void) && ipa_node_params_sum->get (node) != NULL) ipa_write_node_info (ob, node); } - streamer_write_char_stream (ob->main_stream, 0); ipa_write_return_summaries (ob); + streamer_write_char_stream (ob->main_stream, 0); produce_asm (ob); destroy_output_block (ob); } because without that I always saw ipa_read_return_summaries to read no summaries at all. But that doesn't fix the #c40 testcase.