> gcc/cgraph.c | 14 ++++++++++---- > gcc/cgraphclones.c | 5 +++++ > gcc/ipa-fnsummary.c | 2 +- > gcc/ipa-hsa.c | 2 +- > gcc/ipa-icf.c | 2 +- > gcc/ipa-prop.c | 6 ++++-- > gcc/ipa-sra.c | 2 +- > gcc/lto-cgraph.c | 13 +++++-------- > gcc/lto-opts.c | 2 +- > gcc/lto-section-in.c | 12 +++++++----- > gcc/lto-section-out.c | 2 +- > gcc/lto-streamer-in.c | 4 ++-- > gcc/lto-streamer-out.c | 21 ++++++++++++--------- > gcc/lto-streamer.c | 9 +++++++-- > gcc/lto-streamer.h | 10 +++++++--- > gcc/lto/lto-common.c | 13 +++++++------ > gcc/testsuite/gcc.dg/lto/pr91393_0.c | 11 +++++++++++ > gcc/varpool.c | 7 ++++--- > 18 files changed, 87 insertions(+), 50 deletions(-) > create mode 100644 gcc/testsuite/gcc.dg/lto/pr91393_0.c > > @@ -4863,7 +4865,7 @@ ipcp_read_transformation_summaries (void) > size_t len; > const char *data = lto_get_section_data (file_data, > LTO_section_ipcp_transform, > - NULL, &len); > + NULL, 0, &len);
I wonder if we can get prettier interface for this. Perhaps just a wrapper lto_get_summary_section_data that does not need so many parameters. > --- a/gcc/varpool.c > +++ b/gcc/varpool.c > @@ -299,11 +299,12 @@ varpool_node::get_constructor (void) > = lto_get_function_in_decl_state (file_data, decl); > > data = lto_get_section_data (file_data, LTO_section_function_body, > - name, &len, decl_state->compressed); > + name, order - file_data->order_base, > + &len, decl_state->compressed); > if (!data) > - fatal_error (input_location, "%s: section %s is missing", > + fatal_error (input_location, "%s: section %s.%d is missing", > file_data->file_name, > - name); > + name, order - file_data->order_base); Are we now going to get addition .xy indexes for summary sections too? Patch looks OK. Honza