LTO: Capture 'lto_file_decl_data *file_data' in 'class lto_input_block'
commitd7faf7a54e0598bd6d4042d855b7d7905d269470
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 29 Jun 2023 19:33:06 +0000 (29 21:33 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 4 Jul 2023 12:10:54 +0000 (4 14:10 +0200)
treecbb9b24fe00280f54d86a47f7361ad2e9670a978
parent11350734240dbaf9dfe498ad0b7759a23f101ecc
LTO: Capture 'lto_file_decl_data *file_data' in 'class lto_input_block'

... instead of just 'unsigned char *mode_table'.  Preparation for a forthcoming
change, where we need to capture an additional 'file_data' item, so it seems
easier to just capture that one proper.

gcc/
* lto-streamer.h (class lto_input_block): Capture
'lto_file_decl_data *file_data' instead of just
'unsigned char *mode_table'.
* ipa-devirt.cc (ipa_odr_read_section): Adjust.
* ipa-fnsummary.cc (inline_read_section): Likewise.
* ipa-icf.cc (sem_item_optimizer::read_section): Likewise.
* ipa-modref.cc (read_section): Likewise.
* ipa-prop.cc (ipa_prop_read_section, read_replacements_section):
Likewise.
* ipa-sra.cc (isra_read_summary_section): Likewise.
* lto-cgraph.cc (input_cgraph_opt_section): Likewise.
* lto-section-in.cc (lto_create_simple_input_block): Likewise.
* lto-streamer-in.cc (lto_read_body_or_constructor)
(lto_input_toplevel_asms): Likewise.
* tree-streamer.h (bp_unpack_machine_mode): Likewise.
gcc/lto/
* lto-common.cc (lto_read_decls): Adjust.
12 files changed:
gcc/ipa-devirt.cc
gcc/ipa-fnsummary.cc
gcc/ipa-icf.cc
gcc/ipa-modref.cc
gcc/ipa-prop.cc
gcc/ipa-sra.cc
gcc/lto-cgraph.cc
gcc/lto-section-in.cc
gcc/lto-streamer-in.cc
gcc/lto-streamer.h
gcc/lto/lto-common.cc
gcc/tree-streamer.h